summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorKarl Rasche <karlrasche@gmail.com>2003-12-02 22:46:30 +0000
committerKarl Rasche <karlrasche@gmail.com>2003-12-02 22:46:30 +0000
commit9b0dcfd4080200a35478f2a006969ea529763ed3 (patch)
tree808be639429fa9a2dfb370845e80746eb1f160c6 /progs
parentce0f8fef8672b509d4c8fe014ff4d8d679658fa7 (diff)
s/inverse/invtrans.. whoopsie
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/arbvptorus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/tests/arbvptorus.c b/progs/tests/arbvptorus.c
index 29fd461665..0015ae6f63 100644
--- a/progs/tests/arbvptorus.c
+++ b/progs/tests/arbvptorus.c
@@ -109,7 +109,7 @@ static void Init( void )
/* borrowed from an nvidia demo:
* c[0..3] = modelview matrix
- * c[4..7] = inverse modelview matrix
+ * c[4..7] = invtrans modelview matrix
* c[32] = light pos
* c[35] = diffuse color
*/
@@ -124,9 +124,9 @@ static void Init( void )
"DP4 result.position.w, state.matrix.mvp.row[3], vertex.position ;\n"
"# normal x MV-1T -> lighting normal\n"
- "DP3 R1.x, state.matrix.modelview.inverse.row[0], vertex.normal ;\n"
- "DP3 R1.y, state.matrix.modelview.inverse.row[1], vertex.normal;\n"
- "DP3 R1.z, state.matrix.modelview.inverse.row[2], vertex.normal;\n"
+ "DP3 R1.x, state.matrix.modelview.invtrans.row[0], vertex.normal ;\n"
+ "DP3 R1.y, state.matrix.modelview.invtrans.row[1], vertex.normal;\n"
+ "DP3 R1.z, state.matrix.modelview.invtrans.row[2], vertex.normal;\n"
"DP3 R0, program.local[32], R1; # L.N\n"
#if 0