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.

18 lines
435 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. mul_x2 r0, v0, r0 ; Modulate by the illumination with overbright
  13. add r0.rgb, r0, t2 + ; Add in the glint
  14. mov r0.a, t0.a