Created
August 30, 2019 00:24
-
-
Save anarsoul/b4105755ab31022aa7701c567363debc 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
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