librw/tools/ps2/vu.dsm

70 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-01-18 18:35:23 +00:00
.data
.global MyDmaPacket
.global vuLightMat
2015-01-18 18:35:23 +00:00
.global vuMat
.global vuOffset
.global vuGIFtag
.global vuMatcolor
.global vuSurfProps
.global mpgCall
2015-07-11 13:45:38 +01:00
.global textureCall
2015-01-18 18:35:23 +00:00
.global geometryCall
.align 4
MyDmaPacket:
DMAcnt *
.EndDmaData
mpgCall:
DMAcall *, 0 ;vuProg
.EndDmaData
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
2015-01-18 18:35:23 +00:00
lightDir:
.float 0.5, -0.5, -0.70710, 0.0
.EndUnpack
UNPACK 4, 4, V4_32, 0x3f0, *
vuMat:
.float 0.0, 0.0, 0.0, 0.0
.float 0.0, 0.0, 0.0, 0.0
.float 0.0, 0.0, 0.0, 0.0
.float 0.0, 0.0, 0.0, 0.0
.EndUnpack
UNPACK 4, 4, V4_32, 0x3f9, *
vuOffset:
.float 0.0, 0.0, 0.0, 0.0
vuGIFtag:
2015-06-18 22:05:37 +01:00
.int 0x00008000, 0x3005C000, 0x0000000412, 0x00000000
2015-01-18 18:35:23 +00:00
vuMatcolor:
.float 1.0, 1.0, 1.0, 0.5
vuSurfProps:
.float 1.0, 1.0, 1.0, 1.0
; .float 160, 160, 160, 0 ; some ambient light
2015-07-11 13:45:38 +01:00
.float 80, 80, 80, 0
; .float 20, 20, 20, 0
2015-01-18 18:35:23 +00:00
; .float 0, 0, 0, 0
.EndUnpack
.EndDmaData
2015-07-11 13:45:38 +01:00
textureCall:
DMAcall *, 0
.EndDmaData
2015-01-18 18:35:23 +00:00
geometryCall:
DMAcall *, 0 ;vuGeometry
BASE 0
OFFSET 0x0
.EndDmaData
DMAend