umar-ahmed / webgpu-pathtracer

✨ A simple pathtracer running in the browser using WebGPU

Home Page:https://webgpu-pathtracer.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


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:

About

✨ A simple pathtracer running in the browser using WebGPU

https://webgpu-pathtracer.vercel.app


Languages

Language:TypeScript 79.6%Language:WGSL 17.6%Language:CSS 2.3%Language:HTML 0.5%