Lab · Experiment
Ambient starfield
The WebGL starfield that sat behind every page of the v2 site, now an experiment you start on purpose.
three.js · GLSL · React 19 · TypeScript
This experiment needs JavaScript and WebGL. The write up below describes what it does.
Notes
- Background
- Behind every v2 page it pulled three.js onto all 20 routes for a field that inner pages showed through a 92 percent veil.
- How it works
- One three.js point cloud with a custom shader: 6000 stars, or 2600 on touch, low memory or low core devices, picked before the first frame; a pointer repel that decays, a burst on click, and a single static frame under reduced motion.
- Now
- Moved here from the site layout, so three.js now loads only after you press Run.