aboutsummaryrefslogtreecommitdiff
path: root/assets/shaders/radialBlur.frag.glsl
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-20 15:00:34 -0700
committerArmen Kesablyan2012-06-20 15:00:34 -0700
commit38f571d1fdf02d36c3816637af7b2ca2493809da (patch)
tree69b97839be8b2b6fb65e9150d4dc02856041fb1d /assets/shaders/radialBlur.frag.glsl
parentf7c14e54c52bce8875cde81db621dde6f4ff1e34 (diff)
parent120e31dcf1e11eed11ee430d77c438e7b073e9f8 (diff)
downloadninja-38f571d1fdf02d36c3816637af7b2ca2493809da.tar.gz
Merge branch 'refs/heads/master' into binding
Diffstat (limited to 'assets/shaders/radialBlur.frag.glsl')
-rw-r--r--assets/shaders/radialBlur.frag.glsl5
1 files changed, 2 insertions, 3 deletions
diff --git a/assets/shaders/radialBlur.frag.glsl b/assets/shaders/radialBlur.frag.glsl
index 673d082a..c4520e58 100644
--- a/assets/shaders/radialBlur.frag.glsl
+++ b/assets/shaders/radialBlur.frag.glsl
@@ -3,15 +3,14 @@ precision highp float;
3 3
4uniform vec2 u_resolution; 4uniform vec2 u_resolution;
5uniform float u_time; 5uniform float u_time;
6uniform vec4 color; 6uniform float u_speed;
7uniform sampler2D u_tex0; 7uniform sampler2D u_tex0;
8 8
9vec3 deform( in vec2 p ) 9vec3 deform( in vec2 p )
10{ 10{
11 vec2 uv; 11 vec2 uv;
12 12
13 //float time = color.x; 13 float time = u_time * u_speed;
14 float time = u_time;
15 vec2 q = vec2( sin(1.1*time+p.x),sin(1.2*time+p.y) ); 14 vec2 q = vec2( sin(1.1*time+p.x),sin(1.2*time+p.y) );
16 15
17 float a = atan(q.y,q.x); 16 float a = atan(q.y,q.x);