mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
10 lines
186 B
GLSL
10 lines
186 B
GLSL
|
|
vec4 ProcessTexel()
|
|
{
|
|
float index = getTexel(vTexCoord.st).r;
|
|
index = ((index * 255.0) + 0.5) / 256.0;
|
|
vec4 tex = texture(texture2, vec2(index, 0.5));
|
|
tex.a = 1.0;
|
|
return tex;
|
|
}
|
|
|