Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug mode #121

Open
realazthat opened this issue Oct 10, 2016 · 0 comments
Open

Debug mode #121

realazthat opened this issue Oct 10, 2016 · 0 comments

Comments

@realazthat
Copy link

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant