2021-08-03 16:46:45 +00:00
|
|
|
|
|
|
|
vec4 ProcessTexel()
|
|
|
|
{
|
2022-02-10 20:49:40 +00:00
|
|
|
float index = getTexel(vTexCoord.st).a;
|
2021-08-03 16:46:45 +00:00
|
|
|
index = ((index * 255.0) + 0.5) / 256.0;
|
|
|
|
vec4 tex = texture2D(texture2, vec2(index, 0.5));
|
|
|
|
tex.a = 1.0;
|
|
|
|
return tex;
|
|
|
|
}
|
|
|
|
|