Skip to content

Instantly share code, notes, and snippets.

@lewkoo
Created January 25, 2014 22:50
Show Gist options
  • Save lewkoo/8624878 to your computer and use it in GitHub Desktop.
Save lewkoo/8624878 to your computer and use it in GitHub Desktop.
#version 120
void main() {
vec4 color;
float xCor = gl_FragCoord.x;
vec4 white = vec4(1);
vec4 black = vec4(0);
float x = smoothstep(0, 960.0, xCor);
color = mix(black, whites, x);
gl_FragColor = color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment