stk-code_catmod/data/shaders/alphatest_particle.frag

16 lines
204 B
GLSL
Raw Normal View History

2017-10-13 12:19:59 -04:00
uniform sampler2D tex;
in vec2 tc;
in vec4 pc;
out vec4 FragColor;
void main(void)
{
vec4 color = texture(tex, tc);
if (color.a < 0.5)
{
discard;
}
FragColor = color * pc;
}