WebGPU Virtual Shadow Mapping Hits 0.1ms on Desktop, 1ms on Mobile for Toon Rendering

letkma · x · 2026-12-02

A look at the shadow implementation behind a toon-rendering project: hard shadows sell the toon look, but baking meant huge or blurry textures and cascaded shadow maps were too costly for mobile.

The team implemented Virtual Shadow Mapping, splitting the world into a huge virtual grid of tiny tiles. WebGPU compute shaders inspect what the camera sees, render only newly visible tiles on demand, and cache them on the GPU. The author says the level of detail preserved is wild, costing 0.1ms on desktop and 1ms on mobile.

Original post →

More from Infra

Infra channel →