Revert "Rollback to previous package. evas_1.0.0.001+svn.62695slp2+build31"
[framework/uifw/evas.git] / src / modules / engines / gl_common / shader / yuv_frag.h
1 "#ifdef GL_ES\n"
2 "precision highp float;\n"
3 "#endif\n"
4 "uniform sampler2D tex, texu, texv;\n"
5 "varying vec4 col;\n"
6 "varying vec2 tex_c, tex_c2, tex_c3;\n"
7 "void main()\n"
8 "{\n"
9 "   const mat4 yuv2rgb = mat4( 1.16400,  1.16400,  1.16400, 0.00000,\n"
10 "                              0.00000, -0.34410,  1.77200, 0.00000,\n"
11 "                              1.40200, -0.71410,  0.00000, 0.00000,\n"
12 "                             -0.77380,  0.45630, -0.95880, 1.00000);\n"
13 "   gl_FragColor = (yuv2rgb * vec4(texture2D(tex, tex_c.xy).r,\n"
14 "                                  texture2D(texu, tex_c2.xy).r,\n"
15 "                                  texture2D(texv, tex_c3.xy).r, 1.0)) * col;\n"
16 "}\n"