1 ; Tests loading of a variable entry from an array of program locals.
4 OPTION ARB_position_invariant;
5 PARAM vals[4] = { program.env[1..4] };
7 ARL A0.x, program.local[0].x;
8 MOV result.color, vals[A0.x+0];
12 MOV result.color, fragment.color;
16 vertex.local[0] 3.0 0.0 0.0 0.0
17 vertex.environment[1] 0.5 1.0 2.0 0.0
18 vertex.environment[2] 1.0 0.0 1.0 0.0
19 vertex.environment[3] 1.0 0.0 0.5 0.0
20 vertex.environment[4] 0.8 1.0 0.0 0.0
21 expected 0.8 1.0 0.0 0.0