UNPKG

three

Version:

JavaScript 3D library

17 lines (10 loc) 242 B
/** * @author mrdoob / http://mrdoob.com/ */ function WebGLShader( gl, type, string ) { var shader = gl.createShader( type ); gl.shaderSource( shader, string ); gl.compileShader( shader ); return shader; } export { WebGLShader };