ThreeSource

Interactive scene

Gem Chain

A necklace of glass pearls traced ray by ray in WebGPU - sapphire, emerald, ruby or smoke - hanging in a tank you can stir

Every bead is a real sphere traced per pixel: light bends through it, splits slightly by colour, picks up the glass's colour along the path it travels and catches the softbox reflections, while fine dust and flakes glitter inside. Thirteen graduated pearls hang as an open necklace on a physical chain in a tank of drifting, out-of-focus beads; drag one and the chain follows, move the pointer to stir the water. Four glasses - Sapphire, Emerald, Ruby and Smoke - each retint the beads, the tank glow, the background beads and the suspended dust; four arrangements - Necklace, Strand, Trio and Scatter. Lens blur, bloom and a film grade. WebGPU. No models, no textures.
  • Built withthree.js WebGPU, TSL, Analytic ray tracing, Verlet chain
  • Page weight913 KB
  • Source download914 KB
  • AssetsGenerated in code
3dwebgpuray tracingglassrefractionphysicsinteractive
Unlock everything — from $149/yr

7 files · commercial license · lifetime updates for this effect