gl-shader-errors

    1.0.3 • Public • Published

    gl-shader-errors experimental

    "Parses" the log output of gl.getShaderInfoLog to get separate error objects.

    Usage

    NPM

    errors = parse(log)

    Where log is the string output of gl.getShaderInfoLog, return an array of errors with the following properties:

    • message: the error message
    • line: the line the error appears in the shader.
    • file: the file ID that the error appears in.

    License

    MIT. See LICENSE.md for details.

    Install

    npm i gl-shader-errors

    DownloadsWeekly Downloads

    659

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • mikkoh
    • tatumcreative
    • wwwtyro
    • rezaali
    • hughsk
    • chrisdickinson
    • mikolalysenko
    • mattdesl
    • substack
    • thibauts
    • yoshuawuyts