home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 February (Special) / Chip-Special_2006-02_Nero-7.bin / servis / mpc / mplayerc.exe / 1033 / FILE / 412 < prev    next >
Text File  |  2005-11-25  |  402b  |  20 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.     float c0 = dot(tex2D(s0, tex), float4(0.299, 0.587, 0.114, 0));
  17.     
  18.     return c0;
  19. }
  20.