portsmouth / OpenPBR-viewer

An example implementation of OpenPBR in a WebGL pathtracer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:GLSL 66.7%Language:JavaScript 32.1%Language:HTML 1.1%