



















































































































	
	
	



































































































;------------------------------------------------------------------------------
; Texture coordinates
;------------------------------------------------------------------------------

; Base texture is the normal map
mul		oT0.xy, v3, c94

; Transform light direction into texture space and store as a texture stage
mov		r4, v9
dp3		oT1.x, r4, v7
dp3		oT1.y, r4, v8
dp3		oT1.z, r4, v1

; Copy light map coords from UV set 1
mul		oT2.xy, v4, c94
