2020-01-04 17:48:15 +01:00
|
|
|
#version 320 es
|
|
|
|
out mediump vec4 FragColor;
|
|
|
|
|
2020-01-14 13:14:33 +01:00
|
|
|
in mediump vec2 TexCoord;
|
2020-01-15 00:20:48 +01:00
|
|
|
in mediump vec3 Normal;
|
2020-01-14 13:14:33 +01:00
|
|
|
|
2020-01-15 00:20:48 +01:00
|
|
|
uniform sampler2D tex;
|
2020-01-14 13:14:33 +01:00
|
|
|
|
2020-01-04 17:48:15 +01:00
|
|
|
void main()
|
|
|
|
{
|
2020-01-15 00:20:48 +01:00
|
|
|
mediump vec4 texColor = texture(tex, TexCoord);
|
|
|
|
|
|
|
|
// Alpha Scissors
|
|
|
|
if(texColor.a < 0.1)
|
|
|
|
discard;
|
|
|
|
|
|
|
|
FragColor = texColor;
|
2020-01-04 17:48:15 +01:00
|
|
|
}
|