diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-29 20:59:11 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-29 21:18:19 +0300 |
commit | f0a20ae1c9505342721f841bcf537d465b5a54eb (patch) | |
tree | 6ef2981ff0b11372380682400c28d4dd4484036e /source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl | |
parent | 21f35661c1d48f1eb0591f5aa1a0421da54a4ba0 (diff) |
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.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl b/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl index 99cca570b0b..5ae94cb7fe4 100644 --- a/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl @@ -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)) { |