regl-shader-error-overlay
v1.1.0
Published
silly monkeypatched dev tool to render shader errors logged and formated by regl as overlays
Downloads
4
Maintainers
Readme
regl-shader-error-overlay
Somewhat silly monkey-patched dev tool to render shader errors logged by regl as formatted overlays. Ideally, this would be a plugin or option in regl itself, but this works!
usage:
npm install -S regl-shader-error-overlay
import {setupOverlay} from "regl-shader-error-overlay";
setupOverlay();
//... (regl code)
The log statements we're targeting are logged by regl here: https://github.com/regl-project/regl/blob/master/lib/util/check.js#L233