Shaders · procedural texture

Domain warping

Bend the position a shape is looked up at, and a dish of perfect circles comes alive

Domain warping · Quilez, after Perlin 1985

Noise added to the colour stains the plate; added to the position, it bends the outlines

The same noise n(p) in both: raise the slider on each.

colonies from a texturerim: plain p

The warp, drawn

Each pixel shows what lies at its arrow's tip

Long arrows on tight bends cross their neighbours: the picture folds over and the edge tears.

hatched: folded over

Octaves · fbm

Each octave adds bends half as wide

fbm(p), once per octave: h += a * noise(p); a *= .5; p = rotate(p) * 2.03 + 17.1;

Warping the warp

Warp the warp, and rings flow like marble

Step to the last: the bands fold into each other. Their tint comes from q and r on the way.

q = vec2(fbm(p), fbm(p+o1)); r = vec2(fbm(p+k*q+o2), fbm(p+k*q+o3));

Animating the warp

In place, the warp breathes; slid across, it swims

Slide it across: every bump travels the same way, as if the dish sat under running water.

Recap

What the dish showed