Skip to content
Snippets Groups Projects
Commit 3365a390 authored by David Parks's avatar David Parks
Browse files

SL-17451 Fix for erroneous attempt to apply vertex color alpha to texture...

SL-17451 Fix for erroneous attempt to apply vertex color alpha to texture before alpha masking (we don't actually support this and the vertex color alpha is sometimes zero when you think it ought not be).
parent bf183ecf
No related branches found
Tags Release_4.1.4
No related merge requests found
......@@ -43,14 +43,14 @@ VARYING vec2 vary_texcoord0;
void fullbright_lighting()
{
vec4 color = diffuseLookup(vary_texcoord0.xy) * vertex_color;
vec4 color = diffuseLookup(vary_texcoord0.xy);
if (color.a < minimum_alpha)
{
discard;
}
//color.rgb *= vertex_color.rgb;
color *= vertex_color;
color.rgb = pow(color.rgb, vec3(texture_gamma));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment