summaryrefslogtreecommitdiff
path: root/progs/fp/position-upper-left.txt
blob: ac632dbfb7d941910cb2bce2e2f5d15b8c5d1f4e (plain)
1
2
3
4
5
6
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