Skip to content

Instantly share code, notes, and snippets.

@rgngl
Created May 1, 2013 10:34
Show Gist options
  • Save rgngl/5494634 to your computer and use it in GitHub Desktop.
Save rgngl/5494634 to your computer and use it in GitHub Desktop.
#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
void main( void ) {
vec2 position = ( gl_FragCoord.xy / resolution.xy );
vec4 color = vec4(0.0/255.0, 151.0/255.0, 232.0/255.0, 1.0);
if(position.y > (sin(2.0*position.x + time)+0.5)/7.0 && position.y < (sin(2.0*position.x - (0.5*time))+3.5)/4.0){
color.rgb = vec3(1.0, 1.0, 1.0);
}
gl_FragColor = color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment