SL-20730 Patch another potential source of NaNs

master
RunitaiLinden 2023-12-14 10:22:31 -06:00
parent 7e9ab0bad7
commit 9212e09442
1 changed files with 1 additions and 1 deletions

View File

@ -34,6 +34,6 @@ void main()
{
// NOTE: when this shader is used, only alpha is being written to
float a = diffuseLookup(vary_texcoord0.xy).a*vertex_color.a;
frag_color = vec4(0, 0, 0, a);
frag_color = max(vec4(0, 0, 0, a), vec4(0));
}