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