diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/evas/src/modules/engines/gl_common/shader/yuv_frag.shd | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_common/shader/yuv_frag.shd')
-rw-r--r-- | libraries/evas/src/modules/engines/gl_common/shader/yuv_frag.shd | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libraries/evas/src/modules/engines/gl_common/shader/yuv_frag.shd b/libraries/evas/src/modules/engines/gl_common/shader/yuv_frag.shd deleted file mode 100644 index 367fb55..0000000 --- a/libraries/evas/src/modules/engines/gl_common/shader/yuv_frag.shd +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | #ifdef GL_ES | ||
2 | #ifdef GL_FRAGMENT_PRECISION_HIGH | ||
3 | precision highp float; | ||
4 | #else | ||
5 | precision mediump float; | ||
6 | #endif | ||
7 | #endif | ||
8 | uniform sampler2D tex, texu, texv; | ||
9 | varying vec4 col; | ||
10 | varying vec2 tex_c, tex_c2, tex_c3; | ||
11 | void main() | ||
12 | { | ||
13 | float r, g, b, y, u, v; | ||
14 | y = texture2D(tex, tex_c.xy).r; | ||
15 | u = texture2D(texu, tex_c2.xy).r; | ||
16 | v = texture2D(texv, tex_c3.xy).r; | ||
17 | y = (y - 0.0625) * 1.164; | ||
18 | u = u - 0.5; | ||
19 | v = v - 0.5; | ||
20 | r = y + (1.402 * v); | ||
21 | g = y - (0.34414 * u) - (0.71414 * v); | ||
22 | b = y + (1.772 * u); | ||
23 | gl_FragColor = vec4(r, g, b, 1.0) * col; | ||
24 | } | ||