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.

26 lines
651 B

  1. vs.1.1
  2. # DYNAMIC: "DOWATERFOG" "0..0"
  3. #include "macros.vsh"
  4. &AllocateRegister( \$projPos );
  5. dp4 $projPos.x, $vPos, $cModelViewProj0
  6. dp4 $projPos.y, $vPos, $cModelViewProj1
  7. dp4 $projPos.z, $vPos, $cModelViewProj2
  8. dp4 $projPos.w, $vPos, $cModelViewProj3
  9. mov oPos, $projPos
  10. &AllocateRegister( \$worldPos );
  11. ; $worldPos unused, for above water, range fog calcs
  12. &CalcFog( $worldPos, $projPos );
  13. &FreeRegister( \$projPos );
  14. &FreeRegister( \$worldPos );
  15. dp4 oT0.x, $vTexCoord0, $SHADER_SPECIFIC_CONST_0
  16. dp4 oT0.y, $vTexCoord0, $SHADER_SPECIFIC_CONST_1
  17. dp4 oT1.x, $vTexCoord1, $SHADER_SPECIFIC_CONST_2
  18. dp4 oT1.y, $vTexCoord1, $SHADER_SPECIFIC_CONST_3