2014-01-25 15:33:21 -05:00
|
|
|
uniform sampler2D tex;
|
|
|
|
|
2014-02-28 11:29:05 -05:00
|
|
|
#if __VERSION__ >= 130
|
2014-01-25 15:33:21 -05:00
|
|
|
in vec2 uv;
|
|
|
|
out vec4 FragColor;
|
2014-02-28 11:29:05 -05:00
|
|
|
#else
|
|
|
|
varying vec2 uv;
|
|
|
|
#define FragColor gl_FragColor
|
|
|
|
#endif
|
|
|
|
|
2014-01-25 15:33:21 -05:00
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2014-04-03 08:46:35 -04:00
|
|
|
vec4 color = texture(tex, uv);
|
|
|
|
FragColor = vec4(color.rgb * color.a, color.a);
|
2014-01-25 15:33:21 -05:00
|
|
|
}
|