diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/modules/engines/gl_common/shader/filter_blur.shd | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_common/shader/filter_blur.shd')
-rw-r--r-- | libraries/evas/src/modules/engines/gl_common/shader/filter_blur.shd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/gl_common/shader/filter_blur.shd b/libraries/evas/src/modules/engines/gl_common/shader/filter_blur.shd new file mode 100644 index 0000000..5f13a47 --- /dev/null +++ b/libraries/evas/src/modules/engines/gl_common/shader/filter_blur.shd | |||
@@ -0,0 +1,24 @@ | |||
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; | ||
9 | uniform sampler1D gaussian; | ||
10 | varying vec4 col; | ||
11 | varying vec2 tex_c; | ||
12 | varying weight; | ||
13 | uniform radius; | ||
14 | void main() | ||
15 | { | ||
16 | int i; | ||
17 | vec4 fc = vec4(0,0,0,0); | ||
18 | |||
19 | for (i = 0 ; i < radius ; i ++){ | ||
20 | fc += texture2D(tex, tex_c.xy).rgba * | ||
21 | texture1D(gaussian,i/radius).aaaa; | ||
22 | } | ||
23 | gl_FragColor = fc / 4 * col; | ||
24 | } | ||