Blender Git Commit Log
Git Commits -> Revision bf6a22e
Revision bf6a22e by Clément Foucault (master) August 10, 2018, 14:16 (GMT) |
GPUMaterial: Group all colorband texture together This lower the use of texture samplers slots and let users use more real textures in their shaders. This patch also make the ramp texture 16 bit floating point. Meaning you can now use value greater than one in your color ramps. With the limit of 128 colorband per shader (a color band being either a color ramp, a wavelength node or a curve node (and maybe wavelength node in the future)). Only drawback with the current implementation is that it does not remove colorband from pruned GPUNodes but it shouldn't really matter in practice. This should fix T56010 |
Commit Details:
Full Hash: bf6a22ed6f6bbe7db3e7796e83d32e071aae93cc
Parent Commit: c9bd61b
Lines Changed: +130, -57
12 Modified Paths:
/source/blender/draw/intern/draw_manager_data.c (+3, -1) (Diff)
/source/blender/gpu/GPU_material.h (+2, -1) (Diff)
/source/blender/gpu/GPU_texture.h (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+11, -12) (Diff)
/source/blender/gpu/intern/gpu_codegen.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_material.c (+57, -4) (Diff)
/source/blender/gpu/intern/gpu_texture.c (+7, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+24, -24) (Diff)
/source/blender/nodes/shader/nodes/node_shader_blackbody.c (+5, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_curves.c (+8, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_valToRgb.c (+3, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_principled.c (+7, -7) (Diff)
/source/blender/gpu/GPU_material.h (+2, -1) (Diff)
/source/blender/gpu/GPU_texture.h (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+11, -12) (Diff)
/source/blender/gpu/intern/gpu_codegen.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_material.c (+57, -4) (Diff)
/source/blender/gpu/intern/gpu_texture.c (+7, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+24, -24) (Diff)
/source/blender/nodes/shader/nodes/node_shader_blackbody.c (+5, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_curves.c (+8, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_valToRgb.c (+3, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_principled.c (+7, -7) (Diff)