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
574 B

  1. ps.1.1
  2. ;------------------------------------------------------------------------------
  3. ; Draw a texture . . woo hoo!
  4. ; t0 - texture
  5. ;
  6. ; The texture coordinates need to be defined as follows:
  7. ; tc0 - texcoords
  8. ;------------------------------------------------------------------------------
  9. def c0, 0.299f, 0.587f, 0.114f, 1.0f
  10. ; Get the color from the texture
  11. tex t0
  12. ; FIXME: This can only be implemented in dx9 (or ps1.4)
  13. ; need to output max( r, g, b ) in all channels
  14. ; Instead, I'm going to do the RGB->YUV conversion
  15. dp3 r1, c0, t0
  16. mov r0.rgb, r1.a
  17. mov r0.a, c0.a