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.

33 lines
587 B

  1. ps.1.1
  2. ; base texture
  3. tex t0
  4. ; normalmap
  5. tex t1
  6. ; rgb - color for first axis - gamma converted to 2.2 in the vertex shader
  7. texcoord t2
  8. ; rgb - color for second axis - gamma converted to 2.2 in the vertex shader
  9. texcoord t3
  10. ; v0.rgb : color for third axis - gamma converted to 2.2 in the vertex shader
  11. ; c0, c1, c2 - Axes of the lightmap coordinate system in tangent space
  12. dp3_sat r1.rgb, t1_bx2, c0
  13. +mov r0.a, t0
  14. mul r0.rgb, r1, t2
  15. dp3_sat r1.rgb, t1_bx2, c1
  16. mad r0.rgb, r1, t3, r0
  17. dp3_sat r1.rgb, t1_bx2, c2
  18. mad r0.rgb, r1, v0, r0
  19. ;mov_x2 r0.rgb, r0
  20. mul_x2 r0.rgb, r0, t0