summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-11-02 12:58:38 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-11-02 12:58:38 +0000
commite4894177ba725c85f75bfe87bdc03d2c94b0941b (patch)
tree18ad704881d2773203d59826f254a0870336aad1 /progs
parent3a5626cb846ad767fe1c38fe35ebe4df3e3a0454 (diff)
More useful ARL test
Diffstat (limited to 'progs')
-rw-r--r--progs/vp/arl.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/vp/arl.txt b/progs/vp/arl.txt
index da6c9f83fa..a262b0149c 100644
--- a/progs/vp/arl.txt
+++ b/progs/vp/arl.txt
@@ -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