home *** CD-ROM | disk | FTP | other *** search
/ NVIDIA Tech Demo: DAWN / NVIDIA_demo.iso / Dawn.exe / Disk1 / data1.cab / Program_Executable_Files / shaders / _scr.vp20 < prev    next >
Encoding:
Text File  |  2003-02-11  |  466 b   |  19 lines

  1. // This is a simple vertex shader for passing screen
  2. // coordinates unchanged to the fragment shader
  3.  
  4. // holds nothing but 3d position
  5. struct a2vConnector : application2vertex {
  6.  float3 coord:ATTR0;
  7. };
  8.  
  9. // holds nothing but 3d position
  10. struct v2fConnector : vertex2fragment {
  11.  float3 coord:HPOS;
  12. };
  13.  
  14. // moves the coord over and returns the new connector
  15. v2fConnector main(a2vConnector a2v){
  16.  v2fConnector v2f;
  17.  v2f.coord = a2v.coord;
  18.  return v2f;
  19. }