stk-code_catmod/data/shaders/transparent.frag
Benau 155b73d452 Remove unneeded pow in transparent.frag
It's only used in 2d rendering so no srgb sampling is needed
2022-09-08 15:24:40 +08:00

14 lines
220 B
GLSL

uniform sampler2D tex;
in vec2 uv;
in vec4 color;
out vec4 FragColor;
void main()
{
vec4 Color = texture(tex, uv);
Color *= color;
// Premultiply alpha
FragColor = vec4(Color.rgb * Color.a, Color.a);
}