Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created August 30, 2019 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anarsoul/b4105755ab31022aa7701c567363debc to your computer and use it in GitHub Desktop.
Save anarsoul/b4105755ab31022aa7701c567363debc to your computer and use it in GitHub Desktop.
uniform float cond;
void main() {
vec2 color;
if (cond > 1.0) {
color = vec2(0.5, 0.1);
} else {
color = vec2(0.0, 0.0);
}
gl_FragColor = vec4(color.x, color,y, 1.0, 1.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment