diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-08-22 11:44:46 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-08-22 11:44:46 +0300 |
commit | 79dfd2eb7b01cf3c6efc49d368b10f4769d4a97d (patch) | |
tree | cea87ead5f73820efa4b77c0792e784a895dd5fe /source/blender/draw/engines | |
parent | d966ce718b9d93fd74b68556903b72c29a52ebd3 (diff) |
EEVEE-Next: Fix shader compilation error.
This fixes a compilation error in eevee_light_culling_debug shader.
Some compilers complained when accessing the same data twice. Unclear
why. We should investigate that this change doesn't harm the performance
of the shader.
Although the light is a local variable it might clutter available
registers. If so it will harm developers during debugging.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/eevee_next/shaders/eevee_light_culling_debug_frag.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_light_culling_debug_frag.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_light_culling_debug_frag.glsl index 9d231c6bd37..eefc024d0b8 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_light_culling_debug_frag.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_light_culling_debug_frag.glsl @@ -36,7 +36,7 @@ void main() vec3 L; float dist; light_vector_get(light, P, L, dist); - if (light_attenuation(light_buf[l_idx], L, dist) > 0.0) { + if (light_attenuation(light, L, dist) > 0.0) { light_nocull |= 1u << l_idx; } } |