motionblur.nvp 799 B

1234567891011121314151617181920212223242526272829
  1. ;////////////////////////////////////////////////////////////////////////////////
  2. ;// //
  3. ;// (c) 2001-2003 Electronic Arts Inc. //
  4. ;// //
  5. ;////////////////////////////////////////////////////////////////////////////////
  6. ; Motion blur pixel shader
  7. ; Created: John Ahlquist, April 2002
  8. ; Currently unused prototype code. jba.
  9. ; Declare pixel shader version 1.1
  10. ps.1.1
  11. tex t0
  12. ; Define t0 as a standard 3-vector from bumpmap
  13. tex t1
  14. ; Perform EMBM to get a local normal bump reflection.
  15. texbem t2, t1 ; compute new (u,v) values
  16. tex t3
  17. ; result goes in output color multiplied by diffuse
  18. ;mul r0, t2, v0
  19. mul r0.rgb, v0, t0
  20. +add r0.a, v0, t0
  21. mul r1, t2, c0
  22. add r0.rgb, r0, r1
  23. +mul r0.a, r0, t3