[Bf-blender-cvs] [f0a20ae1c95] master: Fix T61129 Eevee: alpha texture shadow bug
Clément Foucault
noreply at git.blender.org
Fri Mar 29 19:18:49 CET 2019
Commit: f0a20ae1c9505342721f841bcf537d465b5a54eb
Author: Clément Foucault
Date: Fri Mar 29 18:59:11 2019 +0100
Branches: master
https://developer.blender.org/rBf0a20ae1c9505342721f841bcf537d465b5a54eb
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.
===================================================================
M source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl
===================================================================
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)) {
More information about the Bf-blender-cvs
mailing list