Counter Strike : Global Offensive Source Code
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.

37 lines
825 B

  1. vs.1.1
  2. # DYNAMIC: "DOWATERFOG" "0..1"
  3. #include "macros.vsh"
  4. local( $worldPos, $worldNormal, $projPos, $reflectionVector );
  5. &AllocateRegister( \$projPos );
  6. dp4 $projPos.x, $vPos, $cModelViewProj0
  7. dp4 $projPos.y, $vPos, $cModelViewProj1
  8. dp4 $projPos.z, $vPos, $cModelViewProj2
  9. dp4 $projPos.w, $vPos, $cModelViewProj3
  10. mov oPos, $projPos
  11. &AllocateRegister( \$worldPos );
  12. ; garymcthack
  13. dp4 $worldPos.z, $vPos, $cModel2
  14. &CalcFog( $worldPos, $projPos );
  15. &FreeRegister( \$worldPos );
  16. &FreeRegister( \$projPos );
  17. ;------------------------------------------------------------------------------
  18. ; Texture coordinates
  19. ;------------------------------------------------------------------------------
  20. ; base texcoords
  21. mov oT0, $vTexCoord0
  22. ; lightmap texcoords
  23. mov oT1, $vTexCoord1
  24. &FreeRegister( \$worldPos ); # garymcthack