1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
[require]
GL >= 1.3
ARB_vertex_program
ARB_fragment_program
[vertex program]
!!ARBvp1.0
OPTION ARB_position_invariant;
END
[fragment program]
!!ARBfp1.0
#This tests instructions like: ADD Temp[0], Temp[0], Temp[1] where one of
#the source registers is the same as the destination register. These
#should not be replaced with presubtract operations.
TEMP color;
MOV color, {0.1, 0.4, 0.8, 1.0};
ADD color.x, color.x, color.x;
ADD color.y, color.x, color.y;
MOV result.color, color;
END
[test]
ortho 0 1 0 1
clear color 1.0 0.0 0.0 0.0
clear
draw rect 0 0 1 1
probe all rgba 0.2 0.6 0.8 1.0
|