summaryrefslogtreecommitdiffstats
path: root/progs/fpglsl/simpleif.glsl
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2010-03-10 16:31:18 -0500
committerZack Rusin <[email protected]>2010-03-10 16:32:07 -0500
commita44f362567f6ed4054e88d8afc94d38f19ed6269 (patch)
tree12643a0103bae89788157d55455a1454c0799a12 /progs/fpglsl/simpleif.glsl
parenta75519cb43c85b99cd54bc46dd83accda0cbd6cd (diff)
fpglsl: a few more useful glsl tests
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 00000000000..922421b4108
--- /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);
+ }
+}