12 lines
270 B
Plaintext
12 lines
270 B
Plaintext
|
#ifdef GL_ES
|
||
|
precision mediump float;
|
||
|
#endif
|
||
|
uniform sampler2D tex;
|
||
|
varying vec4 col;
|
||
|
varying vec2 tex_c;
|
||
|
void main()
|
||
|
{
|
||
|
float inten = dot(texture2D(tex,tex_c.xy).agb,vec3(.3, .59, .11));
|
||
|
gl_FragColor = vec4(inten, inten, inten, texture2D(tex,tex_c.xy).r) * col;
|
||
|
}
|