| Primitive SDF |
Exact distance: sphere, capsule, box. Lipschitz-1. t += d safe. |
1-3 ops |
Direct .ls mapping |
All homes, drawbook |
| Smooth union (smin) |
Polynomial blend: min(a,b) - h²·k/4. Preserves L-1. |
~8 ops |
Direct .ls mapping |
Tree canopies, organic forms |
| Height-field terrain |
p.y - terrainH(p.xz). L > 1 (needs relaxation). |
~40 ops (FBM) |
noise.ls library |
Virgo meadow, Taurus hills |
| IFS fractal tree |
Iterated fold-rotate-scale. 8 iterations of domain warping. |
~80 ops (8 iter) |
Needs loop primitive |
glsl/stdlib.mjs ifsBranch |
| Volumetric aura |
Accumulate glow from near-misses: glow += exp(-d²*k) |
~12 ops/step |
Standard ops |
Gemini twins, stars |
| Field-valued SDF |
vec4(distance, gravity, temperature, density). Physical rendering. |
4x scalar SDF |
.ls vec4 ops |
sdf_solar, sdf_fields |
| Spectral-break FBM |
Multi-regime noise: convective→granular, tectonic→erosion. Phase transitions at physical scales. |
~60 ops (6 oct) |
noise.ls 1:1 port |
Stars, terrain, galaxies, nebulae |
| Animated creature |
Many primitives composed with time-dependent transforms. Bull: ~35 primitives. |
~200 ops |
Static pos bakeable, animation not |
Taurus bull, drawbook octopus |
| Domain repetition |
Infinite copies via mod(p, period). Vineyard rows, star fields. |
~5 ops + 1 SDF |
mod is a primitive |
Taurus vineyard |
| Mandelbrot/Julia |
Escape-time iteration. Not SDF — no distance estimate. |
~500 ops (256 iter) |
Loop + complex ops |
mandelbrot.html |