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 >
Text File  |  2003-03-10  |  673b  |  33 lines

  1. ; Vertex Data:
  2. ;   v0    -  Position
  3. ;   v1    -  Normal
  4. ;   v2    -  uv1
  5. ;
  6. ; Constant Data:
  7. ;   c0    -  Constant Vector (Scale, 0.0, 1.0, 2.0)
  8. ;   c1:c4 -  ModelViewProj Matrix
  9. ;   c5    -  Light direction
  10. ;   c6      -  Light color
  11.  
  12. vs.1.1
  13.  
  14. // Scale normal by the requested scale (and add to new position)...
  15. mul r3, v1, c0.xxxy
  16. add r3, v0, r3
  17.  
  18. // transform position (all the way)...
  19. LT_MACRO_RIGIDTRANS4<oPos,r3,c5>            // Rigid Transform...
  20. LT_MACRO_SKINBLENDTRANS4<r0,r3,v3,v4,r1,c9>        // Skin Blended Transform...
  21. LT_MACRO_SKINTRANS4<oPos,r0,c1>                // Skin Projection...
  22.  
  23. // Output UVs...
  24. mov oT0, v2
  25.  
  26. // Output Color
  27. mov oD0, c0.yyyy
  28.  
  29.  
  30.  
  31.  
  32.  
  33.