Support multiple render phases (with FBOs and all), and make a sample blur effect...
[movit] / blur_effect.frag
1 // A simple, very stupid horizontal blur. Will be fixed soonish.
2
3 vec4 FUNCNAME(vec2 tc) {
4         vec4 x = LAST_INPUT(tc);
5         return
6                 vec4(0.1) * LAST_INPUT(tc + vec2(-0.010f, 0.0)) +
7                 vec4(0.1) * LAST_INPUT(tc + vec2(-0.008f, 0.0)) +
8                 vec4(0.1) * LAST_INPUT(tc + vec2(-0.006f, 0.0)) +
9                 vec4(0.1) * LAST_INPUT(tc + vec2(-0.004f, 0.0)) +
10                 vec4(0.2) * LAST_INPUT(tc + vec2(-0.002f, 0.0)) +
11                 vec4(0.3) * LAST_INPUT(tc + vec2(-0.000f, 0.0)) +
12                 vec4(0.2) * LAST_INPUT(tc + vec2( 0.002f, 0.0)) +
13                 vec4(0.1) * LAST_INPUT(tc + vec2( 0.004f, 0.0)) +
14                 vec4(0.1) * LAST_INPUT(tc + vec2( 0.006f, 0.0)) +
15                 vec4(0.1) * LAST_INPUT(tc + vec2( 0.008f, 0.0)) +
16                 vec4(0.1) * LAST_INPUT(tc + vec2( 0.010f, 0.0));
17 }