From 57c54ec4b75aac8ba2a4235f88760bd8534f2c7a Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Fri, 16 Dec 2022 08:59:02 -0600 Subject: SL-18851 Fix for PBR materials sometimes not casting shadows when they should. --- .../app_settings/shaders/class1/deferred/shadowAlphaMaskF.glsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'indra/newview/app_settings/shaders/class1/deferred') diff --git a/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskF.glsl b/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskF.glsl index 1a344045fe..06ebeb8281 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskF.glsl @@ -48,6 +48,8 @@ void main() discard; } +#if !defined(GLTF) + #if !defined(IS_FULLBRIGHT) alpha *= vertex_color.a; #endif @@ -64,7 +66,7 @@ void main() discard; } } - +#endif frag_color = vec4(1,1,1,1); -- cgit v1.2.3