mesa/progs/fp/position-upper-left.txt

8 lines
249 B
Plaintext

!!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