An example implementation of the OpenPBR Surface shading model in a simple WebGL pathtracer. This is intended as an example of an "as simple as possible" implementation from scratch. Note, it is still a work-in-progress, so still missing some features.
Run the live app here.
To build locally, install npm and run:
npm install
npm run build
npm run preview
And navigate in a browser to http://localhost:8080/OpenPBR-viewer.
This project uses the Standard Shader Ball asset.
- left-click mouse to rotate, right-click mouse to pan camera
- F key to reset camera to Standard Shader Ball default
- AWSD keys to fly
- H key to hide/show the UI
- P key to save a screenshot of the current render
- F11 key to enter/exit fullscreen mode