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:
parent
21f35661c1
commit
f0a20ae1c9
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user