aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/modules/engines/gl_common/shader/filter_sepia_bgra_nomul.shd
blob: 9c6c1d4bf8f0a2e84d1b63d3c0dd2aaccfa07086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifdef GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#endif
uniform sampler2D tex;
varying vec4 col;
varying vec2 tex_c;
void main()
{
	vec3 inp = texture2D(tex,tex_c.xy).rgb;
	gl_FragColor.r = dot(inp, vec3(.393, .769, .189));
	gl_FragColor.g = dot(inp, vec3(.349, .686, .168));
	gl_FragColor.b = dot(inp, vec3(.272, .534, .131));
	gl_FragColor.a = texture2D(tex,tex_c.xy).a;
}