aboutsummaryrefslogtreecommitdiff
path: root/assets/shaders/Deform.frag.glsl
diff options
context:
space:
mode:
authorEric Guzman2012-06-20 19:42:03 -0700
committerEric Guzman2012-06-20 19:42:03 -0700
commit3270aac4980c908f305fb53abadda5121ff6b9cb (patch)
tree6255aaab239fde71b1f4862dd70de7be62f48b85 /assets/shaders/Deform.frag.glsl
parenta5d93daf6fdccbfee160d6a8ba08f6b6d4b9d7cc (diff)
parent87377c81da06abf6d656017859830a3ab2902f0e (diff)
downloadninja-3270aac4980c908f305fb53abadda5121ff6b9cb.tar.gz
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
Diffstat (limited to 'assets/shaders/Deform.frag.glsl')
-rw-r--r--assets/shaders/Deform.frag.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/shaders/Deform.frag.glsl b/assets/shaders/Deform.frag.glsl
index 1dbe45a0..a2bb4fa0 100644
--- a/assets/shaders/Deform.frag.glsl
+++ b/assets/shaders/Deform.frag.glsl
@@ -3,6 +3,7 @@ precision highp float;
3#endif 3#endif
4 4
5uniform float u_time; 5uniform float u_time;
6uniform float u_speed;
6uniform vec2 u_resolution; 7uniform vec2 u_resolution;
7//uniform vec4 mouse; 8//uniform vec4 mouse;
8uniform sampler2D u_tex0; 9uniform sampler2D u_tex0;
@@ -19,7 +20,7 @@ void main(void)
19 float r2 = sqrt(dot(p+m,p+m)); 20 float r2 = sqrt(dot(p+m,p+m));
20 21
21 vec2 uv; 22 vec2 uv;
22 uv.x = 0.2*u_time + (r1-r2)*0.25; 23 uv.x = 0.2*u_time*u_speed + (r1-r2)*0.25;
23 uv.y = sin(2.0*(a1-a2)); 24 uv.y = sin(2.0*(a1-a2));
24 25
25 float w = r1*r2*0.8; 26 float w = r1*r2*0.8;