Examples /
Light you can bend
Shape a clear optical sheet. Watch its light split, gather, and move across the surface below.
Press and drag to reshape the glass. Each gesture redirects the rays that form the caustic beneath it.
How it works
A custom elementKernel computes the sheet’s height and normals. A rawKernel traces three wavelength groups through its curved upper boundary and flat lower boundary, then atomically accumulates energy where rays meet the floor. Native WebGPU renders the caustic and the transparent surface from those same buffers. This is a bounded optical model, not full path tracing.
Read the related guide →