mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 00:20:51 +00:00
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:
parent
93b62d4f15
commit
5939f1947f
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
vec4 ProcessTexel()
|
vec4 ProcessTexel()
|
||||||
{
|
{
|
||||||
float index = getTexel(vTexCoord.st).r;
|
float index = getTexel(vTexCoord.st).a;
|
||||||
index = ((index * 255.0) + 0.5) / 256.0;
|
index = ((index * 255.0) + 0.5) / 256.0;
|
||||||
vec4 tex = texture2D(texture2, vec2(index, 0.5));
|
vec4 tex = texture2D(texture2, vec2(index, 0.5));
|
||||||
tex.a = 1.0;
|
tex.a = 1.0;
|
||||||
|
|
Loading…
Reference in a new issue