MetaDiamonds, Click to watch!

The next MetaShape is the MetaDiamond. Its like the metaballs and the MetaEllipses but with diamonds instead.

The MetaDiamonds will be based off the filter used in the previous MetaShape posts. It will use pixelbender.

MetaDiamonds are defined by this functions:

M(x,y) = R / ( |x0-x| + |y0-y| )

X and Y are the current pixel location. x0 and y0 are the diamonds coordinates.

Now using the filter from the previous posts, it is pretty easy to put this into pixel bender

<languageVersion : 1.0;>

kernel MetaDiamonds
<   namespace : "com.rocketmandevelopment";
 vendor : "Rocketman Development";
 version : 1;
 description : "MetaDiamonds";
>
{
parameter float More >