mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-11 13:11:48 +00:00
11 lines
188 B
Text
11 lines
188 B
Text
|
|
||
|
vec4 ProcessTexel()
|
||
|
{
|
||
|
float index = getTexel(vTexCoord.st).r;
|
||
|
index = ((index * 255.0) + 0.5) / 256.0;
|
||
|
vec4 tex = texture2D(texture2, vec2(index, 0.5));
|
||
|
tex.a = 1.0;
|
||
|
return tex;
|
||
|
}
|
||
|
|