See Live demo.
This is example of a PBR (Physically Based Rendering) with IBL (Image Based Lighting) written in WebGPU. At the moment of writing this I couldn't find any learning materials explaining how to do this so I made it with a lot of trial and error, exploring how to map WebGL concept and APIs to WebGPU.
I hope it will be useful to you!
-
Install dependencies (works interchangeably with
pnpm
andyarn
if you prefer).npm install
-
Run development server.
npm run vite dev
-
Open https://localhost:3000 in your browser.