home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 February (Special) / Chip-Special_2006-02_Nero-7.bin / servis / mpc / mplayerc.exe / 1033 / FILE / 410 < prev    next >
Text File  |  2005-11-25  |  488b  |  24 lines

  1. sampler s0 : register(s0);
  2. float4 p0 : register(c0);
  3. float4 p1 : register(c1);
  4.  
  5. #define width (p0[0])
  6. #define height (p0[1])
  7. #define counter (p0[2])
  8. #define clock (p0[3])
  9. #define one_over_width (p1[0])
  10. #define one_over_height (p1[1])
  11.  
  12. #define PI acos(-1)
  13.  
  14. float4 main(float2 tex : TEXCOORD0) : COLOR
  15. {
  16.     float4 c0 = tex2D(s0, tex);
  17.     
  18.     float2 h = float2(0, 1/height);
  19.     float4 c1 = tex2D(s0, tex-h);
  20.     float4 c2 = tex2D(s0, tex+h);
  21.     c0 = (c0*2+c1+c2)/4;
  22.     
  23.     return c0;
  24. }