Compile-Shader
Used to compile a shader in WebGL.
Usage
npm i compile-shader
var shaderCompiler = ; var gl = document;var type = glVERTEX_SHADER; // or gl.FRAGMENT_SHADERvar src = 'void main () { gl_Position = vec4(0.0, 0.0, 0.0, 1.0); }';var shader = ;
This module is meant to be incorporated via browserify.
Testing
npm t