I'm late for ~7 months, but I've finally published my C++ & WebGPU raytracer on GitHub! I've tried to keep the code fairly commented and readable.
It works pretty well, but I've never managed to make refractions work with VNDF. Maybe another time :)
GitHub
GitHub - lisyarus/webgpu-raytracer: A software raytracing engine written in WebGPUA software raytracing engine written in WebGPU. Contribute to lisyarus/webgpu-raytracer development by creating an account on GitHub.
