Fix func_paletted.fp to use alpha channel for index. This was needed due to GLES renderer change from Raze

This commit is contained in:
Emile Belanger 2022-02-10 20:49:40 +00:00 committed by Christoph Oelckers
parent 93b62d4f15
commit 5939f1947f

View file

@ -1,7 +1,7 @@
vec4 ProcessTexel()
{
float index = getTexel(vTexCoord.st).r;
float index = getTexel(vTexCoord.st).a;
index = ((index * 255.0) + 0.5) / 256.0;
vec4 tex = texture2D(texture2, vec2(index, 0.5));
tex.a = 1.0;