Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
394 B

  1. vs.1.1
  2. # DYNAMIC: "DOWATERFOG" "0..1"
  3. # DYNAMIC: "SKINNING" "0..1"
  4. #include "macros.vsh"
  5. &AllocateRegister( \$worldPos );
  6. &SkinPosition( $worldPos );
  7. ; Transform the position from world to view space
  8. dp4 oPos.x, $worldPos, $cViewProj0
  9. dp4 oPos.y, $worldPos, $cViewProj1
  10. dp4 oPos.z, $worldPos, $cViewProj2
  11. dp4 oPos.w, $worldPos, $cViewProj3
  12. &FreeRegister( \$worldPos );
  13. mov oD0, $cOne