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"
|
|
|
|
"void main()\n"
|
|
|
|
"{\n"
|
2010-02-17 23:10:28 -08:00
|
|
|
" gl_FragColor = texture2D(tex, tex_c.xy).bgra * col;\n"
|
2009-10-09 05:10:27 -07:00
|
|
|
"}\n"
|