Fix T61129 Eevee: alpha texture shadow bug

This was due to some shading resources not being bound for the shadow
shader. This commit completely remove the shading part when in a shadow
shader. Thus making it a bit more lightweight and removing the needed
sources.
This commit is contained in:
Clément Foucault 2019-03-29 18:59:11 +01:00
parent 21f35661c1
commit f0a20ae1c9
Notes: blender-bot 2023-02-14 03:51:41 +01:00
Referenced by issue #61129, Eevee alpha texture shadow bug
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ void CLOSURE_NAME(
out_refr = vec3(0.0);
#endif
#ifdef SHADOW_SHADER
return;
#endif
/* Zero length vectors cause issues, see: T51979. */
float len = length(N);
if (isnan(len)) {