CD

The rainbow diffraction of a compact disc recreated with a thin-film interference model, so the iridescence shifts with the viewing angle.

Techniques: WebGPU, thin-film interference, iridescence shader, Three.js.

Interactive WebGPU demo by Jingfu Chen. Requires a browser with WebGPU support, such as Chrome 113 or later.

CD

Disc Reflection Effect

/work/cd
Checking WebGPU support...