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

  1. struct v2fConnector : vertex2fragment  {
  2.   float4 WPos:WPOS;
  3.   float2 texture:TEX0;
  4. };
  5.  
  6. struct f2fConnector : fragment2framebuffer  {
  7.   float4 COL;
  8. };
  9.  
  10. f2fConnector main(v2fConnector v2f,
  11.          uniform texobj2D texture){
  12.   f2fConnector f2f; 
  13.   f2f.COL = tex2D(texture);
  14.   return f2f;
  15. }
  16.  
  17.