Class GLShader

Constructors

Properties

attributeLoc: Record<string, number> = {}
program: WebGLProgram
uniformLoc: Record<string, WebGLUniformLocation> = {}

Methods

  • Set the uniform of this shader

    Parameters

    • uniforms: UniformType
    • usedTextureUnit: number

      How many texture units have been used

    Returns void