webgl-compile-shader
Compiles a WebGL shader program from the given vertex and fragment source. Throws an error on failure, providing clear logging with line numbers and the problematic shader (vertex vs. fragment).
The shaders are not detached/deleted after link, as this was causing issues with Chrome's WebGLInspector.
Usage
var compiler = ;var info = ; //for dealing with the WebGL objectvar program = infoprogram;//for dealing with logging/warnings var log = infolog;//vert and frag shader GL objects are also exportedconsole;
License
MIT, see LICENSE.md for details.