WebGPU Pathtracer
✨ A simple pathtracer running in the browser using WebGPU. ✨
Click the image above to see the live demo!
Features
- 💡 Indirect lighting
- 🫨 Depth of field
- 🎨 Tone-mapping
- 🌫️ Denoising
- 📸 Camera controls
- 🔺 Triangle meshes
- 📦 Bounding volume hierarchies (BVH)
- 🗺️ Environment maps
- 🪙 PBR materials
- 🤹 Multiple importance sampling (MIS)
Getting Started
Prerequisites
- Node.js (v18 or higher)
Installation
- Clone repo
- Run
corepack enable
to setup Yarn - Run
yarn install
to install dependencies - Run
yarn dev
to start the development server
Credits
Heavily based on: