Skip to content

Debug mode #121

Description

@realazthat

requirebin seems to use browserify without --debug, it would be nice if requirebin turned debug mode on.

Example using regl (working requirebin):


const quad = require('glsl-quad');
const regl = require('regl')();

let frag = `
    THIS IS AN OBVIOUSLY BAD SHADER.

  IT SHOULD THROW AN ERROR.

  BUT REGL ONLY THROWS AN ERROR IN DEBUG MODE.

  WHICH MEANS WE WILL ONLY SEE A WARNING. (CHECK
  THE CONSOLE).

             CAN WE GET REQUIREBIN
              TO USE DEBUG MODE?
`;

let draw = regl({
  vert: quad.shader.vert,
  frag: frag,
  attributes: {
    a_position: quad.verts,
    a_uv: quad.uvs
  },
  elements: quad.indices,
  uniforms: {
    u_clip_y: 1
  }
});

draw();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions