FunctionsGLDrawCreateShaderGLDrawCreateShader CallableGLDrawCreateShader(gl: WebGL2RenderingContext, source: string, type: number): WebGLShaderCreates a shader for the current WebGL context from a given sourceParametersgl: WebGL2RenderingContextWebGL contextsource: stringSource of the shader to createtype: numberThe type of the shader to createReturns WebGLShaderThe created WebGL shader
Creates a shader for the current WebGL context from a given source