diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lamps_lib.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lamps_lib.glsl b/source/blender/draw/engines/eevee/shaders/lamps_lib.glsl index c2e3f81aefd..1b4addaa4ed 100644 --- a/source/blender/draw/engines/eevee/shaders/lamps_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/lamps_lib.glsl @@ -298,6 +298,7 @@ vec3 light_translucent(LightData ld, vec3 W, vec3 N, vec4 l_vector, float scale) { vec3 vis = vec3(1.0); +#ifndef VOLUMETRICS /* Only shadowed light can produce translucency */ if (ld.l_shadowid >= 0.0) { ShadowData data = shadows_data[int(ld.l_shadowid)]; @@ -409,6 +410,7 @@ vec3 light_translucent(LightData ld, vec3 W, vec3 N, vec4 l_vector, float scale) else { vis = vec3(0.0); } +#endif return vis; } |