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 / effect.ps next >
Encoding:
Text File  |  2006-06-23  |  698 b   |  15 lines

  1. //////////////////////////////////////////////////////////////////////////
  2. //                                                                      //
  3. //                        Effect Pixelshader                            //
  4. //                                                                      //
  5. //                   Written by C. Granberg, 2006                       //
  6. //                                                                      //
  7. //////////////////////////////////////////////////////////////////////////
  8.  
  9. sampler effectTexture;
  10.  
  11. float4 Main(float4 color : COLOR0, float2 UV : TEXCOORD0) : COLOR
  12. {
  13.     float4 c0 = tex2D(effectTexture, UV);
  14.     return c0 * color;
  15. }