drag to orbit · wheel to zoom · – fps

Live Mandelbox

The Mandelbox — the Mandelbulb's boxy sibling. Where the bulb bends rays into a sphere with powers of eight, the box folds space: reflect each coordinate into [-0.5,0.5], invert inside the unit sphere, scale, translate. Same renderer as my Mandelbulb — only the distance estimate changed. Drag it, zoom, and slide the scale: that one number is the shape of the fractal.

Slide scale: near |1.5| the set is a connected web of box tunnels; near ±2 the iterations stop escaping and the fractal dissolves into dust. If it's sluggish, pick fast. The shader source is below.

loading shader…