foxygit / GZDoom Log in
commits tags

/wadsrc/static/shaders_gles/glsl/func_paletted.fp · 188 B

raw
vec4 ProcessTexel()
{
	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;
	return tex;
}