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.

29 lines
1.2 KiB

  1. vs.1.1
  2. # DYNAMIC: "DOWATERFOG" "0..1"
  3. ;------------------------------------------------------------------------------
  4. ; Constants specified by the app
  5. ; c0 = (0, 1, 2, 0.5)
  6. ; c1 = (1/2.2, 3, 255, overbright factor)
  7. ; c2 = camera position *in world space*
  8. ; c4-c7 = modelViewProj matrix (transpose)
  9. ; c8-c11 = ViewProj matrix (transpose)
  10. ; c12-c15 = model->view matrix (transpose)
  11. ; c16 = [fogStart, fogEnd, fogRange, 1.0/fogRange]
  12. ; $SHADER_SPECIFIC_CONST_0-$SHADER_SPECIFIC_CONST_1 = Base texture transform
  13. ; $SHADER_SPECIFIC_CONST_2-$SHADER_SPECIFIC_CONST_3 = Mask texture transform
  14. ;------------------------------------------------------------------------------
  15. #include "macros.vsh"
  16. ;------------------------------------------------------------------------------
  17. ; No vertex blending required. Input vertex data is in screen space
  18. ;------------------------------------------------------------------------------
  19. mov oPos.xyz, $vPos.xyz
  20. mov oPos.w, $cOne
  21. ;------------------------------------------------------------------------------
  22. ; Pass any and all texture coordinates through
  23. ;------------------------------------------------------------------------------
  24. mov oT0, $vTexCoord0