summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2
diff options
context:
space:
mode:
authorRunitaiLinden <davep@lindenlab.com>2023-05-25 13:09:03 -0500
committerRunitaiLinden <davep@lindenlab.com>2023-05-25 13:09:03 -0500
commitc12712aa9609325ba3247a67354e91e9342106d6 (patch)
treecbd3f62efcd268b005c88c832cdeda8dfaa96281 /indra/newview/app_settings/shaders/class2
parent64a59928d0c03389bfce4cc95f5c4a565111dcb6 (diff)
DRTVWR-559 Fix for off-color fullbright alpha blinn-phong materials. Scrub some NaNs.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2')
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/pbralphaF.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/pbralphaF.glsl b/indra/newview/app_settings/shaders/class2/deferred/pbralphaF.glsl
index 7b7b4a040c..e6aef7abdc 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/pbralphaF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/pbralphaF.glsl
@@ -258,7 +258,7 @@ void main()
glare = min(glare, 1.0);
a = max(a, glare);
- frag_color = vec4(color.rgb,a);
+ frag_color = max(vec4(color.rgb,a), vec4(0));
}
#else
@@ -311,7 +311,7 @@ void main()
float a = basecolor.a*vertex_color.a;
color += colorEmissive;
color = linear_to_srgb(color);
- frag_color = vec4(color.rgb,a);
+ frag_color = max(vec4(color.rgb,a), vec4(0));
}
#endif