2009-10-12 06:19:55 -07:00
|
|
|
#ifdef GL_ES
|
|
|
|
precision mediump float;
|
|
|
|
#endif
|
2009-10-09 05:10:27 -07:00
|
|
|
uniform sampler2D tex;
|
|
|
|
varying vec4 col;
|
|
|
|
varying vec2 tex_c;
|
2010-01-19 19:59:32 -08:00
|
|
|
varying vec2 tex_c2;
|
2009-10-09 05:10:27 -07:00
|
|
|
void main()
|
|
|
|
{
|
2010-01-19 19:59:32 -08:00
|
|
|
vec4 t = texture2D(tex, tex_c.xy).bgra;
|
|
|
|
vec4 c = vec4(t.r, t.g, t.b, t.a + tex_c2.x);
|
|
|
|
gl_FragColor = c * col;
|
2009-10-09 05:10:27 -07:00
|
|
|
}
|