2011-04-18 22:47:51 -07:00
|
|
|
"#ifdef GL_ES\n"
|
2011-10-05 02:52:08 -07:00
|
|
|
"precision highp float;\n"
|
2011-04-18 22:47:51 -07:00
|
|
|
"#endif\n"
|
|
|
|
"uniform sampler2D tex;\n"
|
|
|
|
"varying vec2 tex_c;\n"
|
|
|
|
"void main()\n"
|
|
|
|
"{\n"
|
|
|
|
" float inten = dot(texture2D(tex,tex_c.xy).abg,vec3(.3, .59, .11));\n"
|
|
|
|
" gl_FragColor = vec4(inten, inten, inten, texture2D(tex,tex_c.xy).r);\n"
|
|
|
|
"}\n"
|