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

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