dist/videocontext.js
/*
	* Create a shader program from a passed vertex and fragment shader source string.
	*
	* @param {WebGLRenderingContext} gl - the webgl context fo which to build the shader.
	* @param {WebGLShader} vertexShader - A compiled vertex shader.
	* @param {WebGLShader} fragmentShader - A compiled fragment shader.
	*
	* @return {WebGLProgram} A compiled & linkde shader program.
	*/
Create a shader program from a passed vertex and fragment shader source string.
@param {WebGLRenderingContext} gl - the webgl context fo which to build the shader.
@param {WebGLShader} vertexShader - A compiled vertex shader.
@param {WebGLShader} fragmentShader - A compiled fragment shader.

@return {WebGLProgram} A compiled & linkde shader program.
Create a shader program from a passed vertex and fragment shader source string . @param { WebGLRenderingContext } gl - the webgl context fo which to build the shader . @param { WebGLShader } vertexShader - A compiled vertex shader . @param { WebGLShader } fragmentShader - A compiled fragment shader . @return { WebGLProgram } A compiled & linkde shader program .
function createShaderProgram(gl, vertexShader, fragmentShader) {
	    var program = gl.createProgram();
	    gl.attachShader(program, vertexShader);
	    gl.attachShader(program, fragmentShader);
	    gl.linkProgram(program);
	    if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
	        throw { "error": 4, "msg": "Can't link shader program for track", toString: function toString() {
	                return this.msg;
	            } };
	    }
	    return program;
	}
function createShaderProgram ( gl , vertexShader , fragmentShader ) { var program = gl . createProgram ( ) ; gl . attachShader ( program , vertexShader ) ; gl . attachShader ( program , fragmentShader ) ; gl . linkProgram ( program ) ; if ( ! gl . getProgramParameter ( program , gl . LINK_STATUS ) ) { throw { "error" : 4 , "msg" : "Can't link shader program for track" , toString : function toString ( ) { return this . msg ; } } ; } return program ; }
Create a shader program from a passed vertex and fragment shader source string.
Create a shader program from a passed vertex and fragment shader source string .