home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar Special 2004 January
/
GSSH0104TT.iso
/
Extras
/
Tron20
/
tron_tools.exe
/
TRON_Tools
/
Tools
/
RenderStyles
/
vs_normalexapnd.vsh
< prev
next >
Wrap
Text File
|
2003-03-10
|
673b
|
33 lines
; Vertex Data:
; v0 - Position
; v1 - Normal
; v2 - uv1
;
; Constant Data:
; c0 - Constant Vector (Scale, 0.0, 1.0, 2.0)
; c1:c4 - ModelViewProj Matrix
; c5 - Light direction
; c6 - Light color
vs.1.1
// Scale normal by the requested scale (and add to new position)...
mul r3, v1, c0.xxxy
add r3, v0, r3
// transform position (all the way)...
LT_MACRO_RIGIDTRANS4<oPos,r3,c5> // Rigid Transform...
LT_MACRO_SKINBLENDTRANS4<r0,r3,v3,v4,r1,c9> // Skin Blended Transform...
LT_MACRO_SKINTRANS4<oPos,r0,c1> // Skin Projection...
// Output UVs...
mov oT0, v2
// Output Color
mov oD0, c0.yyyy