Interior Mapping

Interior mapping fakes rooms behind a building's windows from a single flat quad by ray-marching a cube map in the fragment shader — no interior geometry.

Techniques: WebGPU, interior mapping, cube map ray-box intersection, TSL.

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

Interior Mapping Shader

Simulate effect of interior rooms in the building

/work/interior
Checking WebGPU support...