Created
January 25, 2014 22:50
-
-
Save lewkoo/8624878 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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