Skip to content

✨ A simple pathtracer running in the browser using WebGPU

Notifications You must be signed in to change notification settings

umar-ahmed/webgpu-pathtracer

Repository files navigation


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

Installation

  1. Clone repo
  2. Run corepack enable to setup Yarn
  3. Run yarn install to install dependencies
  4. Run yarn dev to start the development server

Credits

Heavily based on: