mesa/progs/fp/position-upper-left.txt
Brian Paul 1ca2285511 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
2010-01-21 09:38:50 -07:00

7 lines
249 B
Text

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