Implemented transforming of normals on PS2.

This commit is contained in:
Angelo Papenhoff
2015-01-28 21:15:49 +01:00
parent 5247d1c26e
commit 652c82424a
6 changed files with 55 additions and 35 deletions

View File

@@ -1,5 +1,6 @@
.data
.global MyDmaPacket
.global vuLightMat
.global vuMat
.global vuOffset
.global vuGIFtag
@@ -20,6 +21,11 @@ DMAcall *, 0 ;vuProg
DMAcnt *
UNPACK 4, 4, V4_32, 0x3d0, *
vuLightMat:
.float 1.0, 0.0, 0.0, 0.0
.float 0.0, 1.0, 0.0, 0.0
.float 0.0, 0.0, 1.0, 0.0
.float 0.0, 0.0, 0.0, 1.0
lightDir:
.float 0.5, -0.5, -0.70710, 0.0
.EndUnpack