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