UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

9 lines (8 loc) 334 B
/** * Load a WebGL shader * @param gl - WebGL or WebGL2 rendering context * @param shaderSource - shader source code * @param shaderType - shader type * @returns the compiled shader */ export default function loadShader(gl: WebGLRenderingContext | WebGL2RenderingContext, shaderSource: string, shaderType: number): WebGLShader;