projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a5626c
)
More useful ARL test
author
Keith Whitwell
<keith@tungstengraphics.com>
Wed, 2 Nov 2005 12:58:38 +0000
(12:58 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Wed, 2 Nov 2005 12:58:38 +0000
(12:58 +0000)
progs/vp/arl.txt
patch
|
blob
|
history
diff --git
a/progs/vp/arl.txt
b/progs/vp/arl.txt
index da6c9f83fa851d0e170fabf90e48e77cfcdb4aa2..a262b0149c6fb76946a15896f479f6d25fada26e 100644
(file)
--- 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;
-M
UL R0, {5.0}.x, vertex.color
;
+M
AD R0, {5.0}.x, vertex.color, {2.0}.x
;
ARL addr.x, R0.x;
-M
OV result.color, arr[addr.x]
;
+M
UL result.color, arr[addr.x-2], {.07}.x
;
MOV result.position, vertex.position;
END