
 
URL: http://glslsandbox.com/e#21762.0
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | // Simple Ripple // By: Brandon Fogerty // bfogerty at gmail dot com // Special Thanks Codea // xdpixel.com #ifdef GL_ES precision mediump float; #endif uniform float time; uniform vec2 resolution; void main( void ) {     vec2 position = ( gl_FragCoord.xy / resolution.xy ) * 2.0 - 1.0;     position.x *= (resolution.x / resolution.y);     float len = length( position );     float freq = 200.0;     vec2 v2 = ( position / len ) * freq * sin( time*4.0 - len*15.0 )*0.05;     gl_FragColor = vec4( v2.x, v2.y, 0.0, 1.0 ); } | 

