shader_playfield.v.pica 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ; MegaZeux
  2. ;
  3. ; Copyright (C) 2004-2006 Gilead Kutnick <exophase@adelphia.net>
  4. ; Copyright (C) 2007 Alistair John Strachan <alistair@devzero.co.uk>
  5. ; Copyright (C) 2007 Alan Williams <mralert@gmail.com>
  6. ;
  7. ; This program is free software; you can redistribute it and/or
  8. ; modify it under the terms of the GNU General Public License as
  9. ; published by the Free Software Foundation; either version 2 of
  10. ; the License, or (at your option) any later version.
  11. ;
  12. ; This program is distributed in the hope that it will be useful,
  13. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. ; General Public License for more details.
  16. ;
  17. ; You should have received a copy of the GNU General Public License
  18. ; along with this program; if not, write to the Free Software
  19. ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  20. .out outpos position
  21. .out outtc0 texcoord0
  22. .out outclr color
  23. .alias inpos v0
  24. .alias intc0 v1
  25. .alias inclr v2
  26. .constf RGBS(0.00392156862745098, 0.00392156862745098, 0.00392156862745098, 0.00392156862745098)
  27. .proc main
  28. mov outpos, inpos
  29. mov outtc0, intc0
  30. mov r1, RGBS
  31. mul outclr, inclr.wzyx, r1.x
  32. end
  33. .end