home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / SPlayer / SPlayerSetup.exe / splayer.exe / 2052 / FILE / 711 < prev    next >
Encoding:
Text File  |  2009-12-01  |  382 b   |  22 lines

  1. sampler s0 : register(s0);
  2. float4 p0 : register(c0);
  3.  
  4. #define width (p0[0])
  5. #define height (p0[1])
  6. #define clock (p0[3])
  7.  
  8. float4 main(float2 tex : TEXCOORD0) : COLOR
  9. {
  10.     float4 c0 = 0;
  11.     
  12.     tex.x += sin(tex.x+clock/0.3)/20;
  13.     tex.y += sin(tex.x+clock/0.3)/20;
  14.     
  15.     if(tex.x >= 0 && tex.x <= 1 && tex.y >= 0 && tex.y <= 1)
  16.     {
  17.         c0 = tex2D(s0, tex);
  18.     }
  19.     
  20.     return c0;
  21. }
  22.