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.

16 lines
403 B

  1. ps.1.1
  2. ;------------------------------------------------------------------------------
  3. ; Draw the eyes
  4. ; t0 - texture
  5. ; t1 - iris
  6. ; t2 - glint
  7. ;------------------------------------------------------------------------------
  8. tex t0
  9. tex t1
  10. tex t2
  11. lrp r0, t1.a, t1, t0 ; Blend in the iris with the background
  12. mad r0.rgb, r0, v0, t2 + ; Modulate by the illumination, add in the glint
  13. mov r0.a, t0.a