home *** CD-ROM | disk | FTP | other *** search
/ Bitfellas Bitjam / bitfellasbitjamcdbitfellas2007.iso / Dats / distor.ps < prev    next >
Text File  |  2007-08-01  |  281b  |  10 lines

  1. float time_0_X;
  2. sampler2D distortion;
  3. float4 main(float2 x:texcoord):color {
  4.     float2 xx = x;
  5.     xx.y += sin(time_0_X + x.x * 15) * .01;
  6.     xx.y += sin(time_0_X + x.y * 15) * .01;
  7.     if((x.y < .11) || (x.y > .89)) return(0);
  8.     else return(tex2D(distortion, xx));
  9. }
  10.