diff options
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/closure_lit_lib.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/closure_lit_lib.glsl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/closure_lit_lib.glsl b/source/blender/draw/engines/eevee/shaders/closure_lit_lib.glsl index 613b48ff9b8..30ce60f3ec0 100644 --- a/source/blender/draw/engines/eevee/shaders/closure_lit_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/closure_lit_lib.glsl @@ -464,6 +464,9 @@ void CLOSURE_NAME(vec3 N float btdf = get_btdf_lut(NV, roughness, ior); out_refr += refr_accum.rgb * btdf; + + /* Global toggle for lightprobe baking. */ + out_refr *= float(specToggle); # endif # ifdef CLOSURE_CLEARCOAT |