summaryrefslogtreecommitdiffstats
path: root/progs/fp/position-upper-left.txt
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-21 09:38:50 -0700
committerBrian Paul <[email protected]>2010-01-21 09:38:50 -0700
commit1ca22855119508457b2cbd9a0a3b840e47a61eff (patch)
tree99d11f30fe03e27b21e2dac975d00cfc3241f7e7 /progs/fp/position-upper-left.txt
parent24d3a7a251b091be1da5c8c4ef03d1b187ffd39c (diff)
progs/fp: testcases for GL_ARB_fragment_coord_conventions
Based on a patch from Luca Barbieri but moved the comments after the !!ARBfp1.0 header
Diffstat (limited to 'progs/fp/position-upper-left.txt')
-rw-r--r--progs/fp/position-upper-left.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/fp/position-upper-left.txt b/progs/fp/position-upper-left.txt
new file mode 100644
index 00000000000..ac632dbfb7d
--- /dev/null
+++ b/progs/fp/position-upper-left.txt
@@ -0,0 +1,7 @@
+!!ARBfp1.0
+# expected: the yellow vertex is the bottom one
+# if it is the top one, the wrong origin convention is being used
+OPTION ARB_fragment_coord_origin_upper_left;
+MOV result.color, {0}.x;
+MUL result.color.xy, fragment.position, {.005}.x;
+END