Skip to content

Instantly share code, notes, and snippets.

@tripplyons
Last active April 29, 2016 19:43
Show Gist options
  • Save tripplyons/f2801914536d5ce94068ae3716b77ff6 to your computer and use it in GitHub Desktop.
Save tripplyons/f2801914536d5ce94068ae3716b77ff6 to your computer and use it in GitHub Desktop.
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
vec4 live = vec4(1.,1.,1.,1.);
vec4 dead = vec4(0.,0.,0.,1.);
void main( void ) {
vec2 position = ( gl_FragCoord.xy / resolution.xy ) + mouse / 4.0;
gl_FragColor = dead;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment