Overview
Pearl Chamber is a full-screen 3D environment that runs in the browser with three.js. It is a close macro view inside a nest of dark, porous slate stones. A milky moonstone in the centre glows from within, blue light moving through its layered interior, and lights the stones around it. Soft wrap light, deep shadows, a navy haze and a shallow depth of field make it tactile and quiet. Everything is procedural: the 22 stones are one instanced mesh shaped in the shader and the moonstone is a ray-marched layered interior, so the scene loads no textures or models and the whole source is under 100 KB. What you can do with it: - Use it as an intimate background for jewellery, beauty, wellness or a premium product reveal. - Change the mood: glow colour, stone colour, blur and the layout of the stones are a few named values. - Drop your own content on top: the canvas is fixed behind the page. How it behaves: - A seamless 12 second loop: every motion repeats exactly, so recordings loop without a seam. - The camera makes a slow dolly in and back on the loop, and leans towards the mouse on desktop. - Respects the Reduce motion system setting. - Adapts to the device: quality tiers with a pixel budget, stepping down when frames run slow. - A ?hud readout to measure frame rate on any device, and ?t to freeze any moment for stills. Included: the source (static HTML and JavaScript modules, no build step), a buyer guide, credits, and AGENTS.md plus CLAUDE.md so AI coding agents such as Claude Code or Codex can customise or port it. three.js 0.186.1 loads from a CDN under its MIT license.
Highlights
- Glowing moonstone in a stone nest
- Fully procedural: no textures or models
- Seamless 12 second loop, no build step
- Adaptive quality, mouse response and reduced motion


