pex-renderer
pex-renderer copied to clipboard
Shader compilation errors are swallowed
I believe it was introduced so the pex-nodes gui doesn't crash on shader recompilation.. We return "renderer red color" shader when compilation fails: https://github.com/pex-gl/pex-renderer/blob/master/index.js#L361
Options:
- Signal
renderer.error.on((e) => { })so it's consistent withcomponent.changed - EventListener
renderer.addEventListener('error', (e) => { }) - capture and re-throw
For now i'm re-throwing errors in cx branch https://github.com/pex-gl/pex-renderer/commit/fb82203f51a95481997b22b2d0d938ec62861d85
This is being worked on here https://github.com/pex-gl/pex-renderer/pull/120