stk-code_catmod/data/shaders/billboard.frag

17 lines
239 B
GLSL
Raw Normal View History

uniform sampler2D tex;
#if __VERSION__ >= 130
in vec2 uv;
out vec4 FragColor;
#else
varying vec2 uv;
#define FragColor gl_FragColor
#endif
void main(void)
{
vec4 color = texture(tex, uv);
2014-05-10 14:49:30 -04:00
FragColor = vec4(color.rgb, color.a);
}