Skip to content

Instantly share code, notes, and snippets.

@nasser
Created November 11, 2014 12:58
Show Gist options
  • Save nasser/1603b4a5efaec8d0da29 to your computer and use it in GitHub Desktop.
Save nasser/1603b4a5efaec8d0da29 to your computer and use it in GitHub Desktop.
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