stk-code_catmod/data/shaders/billboard.frag

13 lines
213 B
GLSL
Raw Normal View History

uniform sampler2D tex;
in vec2 uv;
2017-08-09 03:03:37 -04:00
in vec4 vertex_color;
out vec4 FragColor;
void main(void)
{
vec4 color = texture(tex, uv);
2017-08-09 03:03:37 -04:00
color *= vertex_color;
2015-02-18 18:44:21 -05:00
FragColor = vec4(color.a * color.rgb, color.a);
}