summaryrefslogtreecommitdiff
path: root/progs/fpglsl/simpleif.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fpglsl/simpleif.glsl')
-rw-r--r--progs/fpglsl/simpleif.glsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/fpglsl/simpleif.glsl b/progs/fpglsl/simpleif.glsl
new file mode 100644
index 0000000000..922421b410
--- /dev/null
+++ b/progs/fpglsl/simpleif.glsl
@@ -0,0 +1,6 @@
+void main() {
+ // this should always be true
+ if (gl_FragCoord.x >= 0.0) {
+ gl_FragColor = vec4(0.5, 0.0, 0.5, 1.0);
+ }
+}