- removed the brightness fudging in the palette emulation shader and always return an alpha of 1.

The fudging was only needed because fog was still applied on top of the palette emulation so after completely disabling the true color distance attenuation in palette mode it made the image too bright.
The alpha needs to be 1 because this is only the texel, not the combined color.
This commit is contained in:
Christoph Oelckers 2020-09-21 21:17:23 +02:00
parent 3810c4cb51
commit 0461acfc8b

View file

@ -60,5 +60,5 @@ vec4 ProcessTexel()
color.rgb = uFogColor.rgb * (1.0-fogfactor) + color.rgb * fogfactor;// mix(vec3(0.6), color.rgb, fogfactor);
}
if (color.a < uAlphaThreshold) discard; // it's only here that we have the alpha value available to be able to perform the alpha test.
return vec4(color.rgb / 0.85, vColor.a);
return vec4(color.rgb, 1.0);
}