stk-code_catmod/data/shaders/billboard.frag
2017-08-09 15:03:37 +08:00

13 lines
213 B
GLSL

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