Generalized Worley Noise

Worley noise is a type of noise used for procedural texturing in computer graphics. In its most basic form, it looks like this: (color r2 (worley q 50 :oversample true)) That&rsquo;s ugly and boring, but it&rsquo;s a quick way to see what the effect looks like. If we use Worley noise to distort a 3D shape, we can get something like a hammered or cratered texture: (def s (osc t 5 | ss 0.2 0.8 * 30…