pex-gl / pex-renderer

Physically based renderer (PBR) and scene graph for PEX.
https://pex-gl.github.io/pex-renderer/examples/index.html
MIT License
236 stars 16 forks source link

Examples screenshot #191

Closed dmnsgn closed 5 years ago

dmnsgn commented 5 years ago

Typical dev workflow:

Generate all screenshots

npm run screenshots

Build/optimise examples via webpack

npm run build

- Compare code updates via image diff:
```bash
# Generate all (about 1 to 2 minutes) 
npm run screenshots
# or one screenshot(s)
npm run screenshots -- example-name

# Run diff between newly generated screenshot and version on master
npm run diff -- example-name

# See generated file in examples/screenshot/example-name-diff.png

PS: diff testable by changing https://raw.githubusercontent.com/pex-gl/pex-renderer/master/examples/screenshots/${currentExample}.png to https://raw.githubusercontent.com/pex-gl/pex-renderer/examples-screenshot/examples/screenshots/${currentExample}.png