Created
November 11, 2014 12:58
-
-
Save nasser/1603b4a5efaec8d0da29 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
void main(void) | |
{ | |
vec2 uv = gl_FragCoord.xy / iResolution.xy; | |
if(uv.y < 0.5 + 0.2*sin(20.0*uv.x + iGlobalTime)) { | |
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); | |
} else { | |
gl_FragColor = vec4(0.0, 0.0, 1.0, 1.0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment