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.

23 lines
375 B

  1. ps.1.1
  2. def c0, 1.0f, 0.0f, 0.0f, 0.0f
  3. def c1, 0.0f, 1.0f, 0.0f, 0.0f
  4. def c2, 0.0f, 0.0f, 1.0f, 0.0f
  5. tex t0 ; basetexture zy
  6. tex t1 ; basetexture xz
  7. tex t2 ; basetexture xy
  8. tex t3 ; lightmap
  9. dp3_sat r1, v0, c0
  10. mul r0, t0, r1
  11. dp3_sat r1, v0, c1
  12. mad r0, t1, r1, r0
  13. dp3_sat r1, v0, c2
  14. mad r0, t2, r1, r0
  15. ; multiply by lightmap
  16. mul_x2 r0.rgb, r0, t3
  17. +mov r0.a, v0 ; $vColor