ecsgame/Shaders/default-fragment.fs

18 lines
279 B
Forth
Raw Normal View History

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