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