summaryrefslogtreecommitdiff
path: root/progs/fp/position-frc-integer.txt
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fp/position-frc-integer.txt')
-rw-r--r--progs/fp/position-frc-integer.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/fp/position-frc-integer.txt b/progs/fp/position-frc-integer.txt
new file mode 100644
index 0000000000..3a634c9b3b
--- /dev/null
+++ b/progs/fp/position-frc-integer.txt
@@ -0,0 +1,7 @@
+!!ARBfp1.0
+# expected: black triangle
+# brown means the wrong pixel center convention is being used
+OPTION ARB_fragment_coord_pixel_center_integer;
+MOV result.color, {0}.x;
+FRC result.color.xy, fragment.position;
+END