summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-12-16 08:59:02 -0600
committerDave Parks <davep@lindenlab.com>2022-12-16 08:59:02 -0600
commit57c54ec4b75aac8ba2a4235f88760bd8534f2c7a (patch)
tree62b278bec6c9c53b491953f85cfc2b486e8aff24 /indra/newview/app_settings/shaders/class1/deferred
parent6f7eeecdb33c14cb3044118a9d6e2eea900af55e (diff)
SL-18851 Fix for PBR materials sometimes not casting shadows when they should.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/shadowAlphaMaskF.glsl4
1 files changed, 3 insertions, 1 deletions
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);