aboutsummaryrefslogtreecommitdiffstats
path: root/progs/vp/arl.txt
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2005-11-01 20:29:59 +0000
committerKeith Whitwell <[email protected]>2005-11-01 20:29:59 +0000
commita9b927cb6e5b4a98cf324faa2b0d61de1ce1a090 (patch)
tree86bfdbf29c87b38647683fe53c67ecb9fb32c664 /progs/vp/arl.txt
parenta546abc8da5e03d4caf4c044726ba364d3688b32 (diff)
add an arl test
Diffstat (limited to 'progs/vp/arl.txt')
-rw-r--r--progs/vp/arl.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/progs/vp/arl.txt b/progs/vp/arl.txt
new file mode 100644
index 00000000000..da6c9f83fa8
--- /dev/null
+++ b/progs/vp/arl.txt
@@ -0,0 +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} };
+ADDRESS addr;
+TEMP R0;
+MUL R0, {5.0}.x, vertex.color;
+ARL addr.x, R0.x;
+MOV result.color, arr[addr.x];
+MOV result.position, vertex.position;
+END