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.

17 lines
577 B

  1. ps.1.1
  2. ;------------------------------------------------------------------------------
  3. ; Draw stuff
  4. ;------------------------------------------------------------------------------
  5. tex t0 ; Contains spotlight
  6. tex t1 ; Contains base texture
  7. tex t2 ; Normalize world pos to light
  8. tex t3 ; Sample iris
  9. dp3 r0, t2_bx2, v0_bx2 ; r0 = N dot L
  10. lrp r1.rgb, t3.a, t3, t1 ; r1 = lerp( baseColor, irisSample.xyz, irisSample.a )
  11. mul r0.rgb, r0_sat, r1 ; Saturate ( N dot L )* lerp
  12. mul r0.rgb, r0, v0.a ; *= attenuation
  13. mul_x2 r0.rgb, r0, t0 + ; *= 2 * spotlight
  14. mov r0.a, t1.a