diff --git a/wadsrc/static/shaders_gles/glsl/func_paletted.fp b/wadsrc/static/shaders_gles/glsl/func_paletted.fp index 8de8f0747..3b223d2f8 100644 --- a/wadsrc/static/shaders_gles/glsl/func_paletted.fp +++ b/wadsrc/static/shaders_gles/glsl/func_paletted.fp @@ -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;