silly monkeypatched dev tool to render shader errors logged and formated by regl as overlays
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
overlay.js
package.json

README.md

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!

screenshot

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