summaryrefslogtreecommitdiff
path: root/progs/fp/local.txt
blob: 6cb2a2f13ccaf123f3316b65c76c76913a23c43a (plain)
1
2
3
4
5
6
7
8
9
10
11
!!ARBfp1.0
TEMP R0;
PARAM c[4] = { { 0, 0, 0, 0 },
               program.local[0..1],
               { 1, 1, 1, 1 } };
MOV R0, c[1];
SUB R0, R0, c[0];
ADD R0, R0, c[2];
MUL R0, R0, c[3];
MOV result.color, R0;
END