home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 14 / Example 14.1 / Debug / Shaders / visited.ps < prev   
Encoding:
Text File  |  2006-06-22  |  749 b   |  18 lines

  1. //////////////////////////////////////////////////////////////////////////
  2. //                                                                      //
  3. //                    Visited-Texture Pixelshader                       //
  4. //                                                                      //
  5. //                   Written by C. Granberg, 2006                       //
  6. //                                                                      //
  7. //////////////////////////////////////////////////////////////////////////
  8.  
  9. sampler visibleTexture;
  10. sampler visitedTexture;
  11.  
  12. float4 Main(float2 UV : TEXCOORD0) : COLOR
  13. {
  14.     float4 c0 = tex2D(visibleTexture, UV);
  15.     float4 c1 = tex2D(visitedTexture, UV);
  16.  
  17.     return max(c0, c1);
  18. }