regl-shader-error-overlay

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i regl-shader-error-overlay

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

4.65 kB

Total Files

4

Last publish

Collaborators

  • maxbittker