summaryrefslogtreecommitdiffstats
path: root/progs/fp/position-upper-left.txt
diff options
context:
space:
mode:
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