01 · Worlds
Worlds
in shaders
Four live pieces, each written in GLSL and drawn by three.js, fresh every frame. Nothing here is a video.
Notes
How a world gets built.
- N.01
Start with a distance function
Describe the world as a function that returns how far any point is from the nearest surface. Everything else, lighting, shadows, fog, falls out of that one function.
- N.02
Light by hand
No imported environment maps. The light is written as a function of direction, so it can be tuned in the same file as the geometry it lights.
- N.03
Keep the frame budget visible
Every piece runs at a fixed internal resolution and a known step count. If it cannot hold sixty frames on a phone, it is not finished.
Next
Interaction