Newer
Older
HuangJiPC / public / static / three / src / renderers / webgl / WebGLShader.js
@zhangdeliang zhangdeliang on 21 Jun 196 bytes update
function WebGLShader( gl, type, string ) {

	const shader = gl.createShader( type );

	gl.shaderSource( shader, string );
	gl.compileShader( shader );

	return shader;

}

export { WebGLShader };