stk-code_catmod/data/shaders/sp_text_billboard.frag

16 lines
249 B
GLSL
Raw Normal View History

2017-12-30 02:28:04 -05:00
in vec2 uv;
in vec4 color;
out vec4 o_diffuse_color;
uniform sampler2D font_texture;
void main()
{
vec4 col = texture(font_texture, uv);
if (col.a < 0.5)
{
discard;
}
o_diffuse_color = vec4(col.xyz * color.xyz, 1.0);
}