Blender Git Loki
Git Commits -> Revision cac43e1
Revision cac43e1 by Clément Foucault (master) August 8, 2018, 19:27 (GMT) |
Eevee: Use "constant folding" for the principle shader This is more like a static optimisation when some parameters are set to 1.0 or 0.0. In theses case we use a more optimized version of the node. This also revisit the transmission parameter behaviour to make it closer to cycles. |
Commit Details:
Full Hash: cac43e1765ab128880bd410d3b8387dc7143f740
Parent Commit: 26d46d0
Lines Changed: +225, -47
7 Modified Paths:
/source/blender/draw/engines/eevee/eevee_materials.c (+3, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl (+8, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl (+15, -0) (Diff)
/source/blender/gpu/GPU_material.h (+1, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+152, -31) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_principled.c (+44, -15) (Diff)
/source/blender/nodes/shader/nodes/node_shader_eevee_specular.c (+2, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl (+8, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl (+15, -0) (Diff)
/source/blender/gpu/GPU_material.h (+1, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+152, -31) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_principled.c (+44, -15) (Diff)
/source/blender/nodes/shader/nodes/node_shader_eevee_specular.c (+2, -0) (Diff)