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.

36 lines
496 B

  1. ; STATIC: "REFRACTTINTTEXTURE" "0..1"
  2. ; STATIC: "NORMALMAPALPHA" "0..1"
  3. ps.1.1
  4. ; t0:
  5. ; texture: dudv map
  6. ; texcoords: dudvmap texcoords
  7. ; t1:
  8. ; texture: refraction render target
  9. ; texcoords:
  10. tex t0 ; sample dudv map
  11. texbem t1, t0 ; refraction
  12. #if REFRACTTINTTEXTURE
  13. tex t2
  14. #endif
  15. #if NORMALMAPALPHA
  16. tex t3
  17. #endif
  18. ; refracttint
  19. #if REFRACTTINTTEXTURE
  20. mul_x2 r0, t1, t2
  21. #else
  22. mov r0, t1
  23. #endif
  24. #if NORMALMAPALPHA
  25. mul r0.rgb, r0, c0 +
  26. mov r0.a, t3.a
  27. #else
  28. mul r0.rgb, r0, c0
  29. #endif