stk-code_catmod/data/shaders/object_unlit.frag

18 lines
266 B
GLSL
Raw Normal View History

2014-01-25 15:00:02 -05:00
uniform sampler2D tex;
#if __VERSION__ >= 130
2014-01-25 15:00:02 -05:00
in vec2 uv;
out vec4 FragColor;
#else
varying vec2 uv;
#define FragColor gl_FragColor
#endif
2014-01-25 15:00:02 -05:00
void main(void)
{
vec4 color = texture(tex, uv);
if (color.a < 0.5) discard;
FragColor = vec4(color.xyz, 1.);
}