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.
More from Infra
- antirez: best open-weight models still won't fit even on a DGX Station — antirez · 2026-12-02
- Groq names ex-Google infra chief Sachin Gupta CEO, armed with $1B and zero debt — GroqLLC · 2026-12-02
- No Jensen keynote: NVIDIA exec sessions hint agents demand Vera Rubin, space GPUs in 2027 — IanAndrewsDC · 2026-12-02
- Nebius' LayerStream speeds up MoE fine-tuning on fewer GPUs — Arindam_1729 · 2026-12-02
- Cloudflare acquires open-source secrets toolkit Varlock to secure AI workflows — cnakazawa · 2026-12-02
- GTC takeaway: Sovereign AI is now the consensus, from compute to models — BrettKrieger12 · 2026-12-02