home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 February (Special) / Chip-Special_2006-02_Nero-7.bin / servis / mpc / mplayerc.exe / 1033 / FILE / 414 < prev    next >
Text File  |  2005-11-25  |  491b  |  25 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 = 0;
  17.     
  18.     float2 ar = float2(16, 9);
  19.     float h = (1 - width/height * ar.y/ar.x) / 2;
  20.     
  21.     if(tex.y >= h && tex.y <= 1-h)
  22.         c0 = tex2D(s0, tex);
  23.     
  24.     return c0;
  25. }