Skip to content

An example implementation of OpenPBR in a WebGL pathtracer

License

Notifications You must be signed in to change notification settings

portsmouth/OpenPBR-viewer

Repository files navigation

OpenPBR-viewer

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.

UI controls:

  • 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

About

An example implementation of OpenPBR in a WebGL pathtracer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published