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 / minimap.ps < prev    next >
Encoding:
Text File  |  2006-06-22  |  762 b   |  19 lines

  1. //////////////////////////////////////////////////////////////////////////
  2. //                                                                      //
  3. //                       Minimap Pixelshader                            //
  4. //                                                                      //
  5. //                   Written by C. Granberg, 2006                       //
  6. //                                                                      //
  7. //////////////////////////////////////////////////////////////////////////
  8.  
  9. sampler landScape;
  10. sampler FogOfWar;
  11.  
  12. float4 Main(float2 UV : TEXCOORD0) : COLOR
  13. {
  14.     float4 c0 = tex2D(landScape, UV);
  15.     float4 c1 = tex2D(FogOfWar, UV);
  16.     float4 c2 = c0 * c1;
  17.  
  18.     return float4(c2.rgb, 1.0f);
  19. }