11 lines
286 B
C
11 lines
286 B
C
|
"#ifdef GL_ES\n"
|
||
|
"precision mediump float;\n"
|
||
|
"#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"
|