Building a Real-Time Path Tracer in WebGPU

Having built a raycaster for my Wolfenstein 3D recreation I wanted to take things to the next level and build a &ldquo;simple&rdquo; ray tracer. The result is a real-time path tracer written entirely in WebGPU compute shaders, running in a browser, rendering levels loaded from actual Doom WAD files. No hardware ray tracing cores, no ML denoisers, no engine — just maths, triangles, and a GPU doing…