From f775fb752cac57a0c1f6c42c8c60f5ff329eab32 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Wed, 22 Feb 2012 11:36:19 -0800 Subject: Revert "Integrating canvas-2d drawing and WebGL fixes, including adding back WebGL materials." This reverts commit 96a0a8c916533eb5625816192ed38488f639326d. --- assets/shaders/Pulse.frag.glsl | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 assets/shaders/Pulse.frag.glsl (limited to 'assets/shaders/Pulse.frag.glsl') diff --git a/assets/shaders/Pulse.frag.glsl b/assets/shaders/Pulse.frag.glsl deleted file mode 100644 index b24c9bef..00000000 --- a/assets/shaders/Pulse.frag.glsl +++ /dev/null @@ -1,22 +0,0 @@ -#ifdef GL_ES -precision highp float; -#endif - -uniform float u_time; -uniform vec2 u_resolution; -uniform sampler2D u_tex0; - -void main(void) -{ - vec2 halfres = u_resolution.xy/2.0; - vec2 cPos = gl_FragCoord.xy; - - cPos.x -= 0.5*halfres.x*sin(u_time/2.0)+0.3*halfres.x*cos(u_time)+halfres.x; - cPos.y -= 0.4*halfres.y*sin(u_time/5.0)+0.3*halfres.y*cos(u_time)+halfres.y; - float cLength = length(cPos); - - vec2 uv = gl_FragCoord.xy/u_resolution.xy+(cPos/cLength)*sin(cLength/30.0-u_time*10.0)/25.0; - vec3 col = texture2D(u_tex0,uv).xyz*50.0/cLength; - - gl_FragColor = vec4(col,1.0); -} \ No newline at end of file -- cgit v1.2.3