1 Reply Latest reply on Feb 1, 2010 8:38 AM by Daniel Rinehart

    Rectangular mosaic: how?

    JuRito

      I'm wondering how to get a rectangular mosaic effect. I saw the code for a mosaic is quite simple, just

       

              float2 p = outCoord();

              p = mod(p,size);

              dst = sample(src,outCoord() - p);

       

      How can i control separately both the width and the height of the resulting "mosaic pieces"?

       

      (sorry for the pretty stupid question but i'm a real newbie with pb.. :\)