Browse Source

More useful ARL test

tags/mesa_20060201
Keith Whitwell 21 years ago
parent
commit
e4894177ba
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      progs/vp/arl.txt

+ 3
- 3
progs/vp/arl.txt View File

@@ -1,9 +1,9 @@
!!ARBvp1.0
PARAM arr[5] = { {1,0,0,1}, {0,1,0,1}, {0,0,1,1}, {1,0,1,1}, {0,1,1,1} };
PARAM arr[5] = { {0,1,2,3}, {4,5,6,7}, {8,9,10,11}, {12,13,14,14}, {16,17,18,19} };
ADDRESS addr;
TEMP R0;
MUL R0, {5.0}.x, vertex.color;
MAD R0, {5.0}.x, vertex.color, {2.0}.x;
ARL addr.x, R0.x;
MOV result.color, arr[addr.x];
MUL result.color, arr[addr.x-2], {.07}.x;
MOV result.position, vertex.position;
END

Loading…
Cancel
Save