@lightningjs/renderer
    Preparing search index...

    Class WebGlShaderProgram

    Implements

    • CoreShaderProgram
    Index
    attributeLocations: string[]
    glw: GlContextWrapper
    isDestroyed: boolean = false
    lifecycle: Pick<WebGlShaderType, "update" | "canBatch">
    program: WebGLProgram | null
    supportsIndexedTextures: boolean = false
    uniformLocations: Record<string, WebGLUniformLocation> | null
    useSystemAlpha: boolean = false
    useSystemDimensions: boolean = false
    useTimeValue: boolean = false
    vao: WebGLVertexArrayObject | undefined

    Vertex Array Object

    Used by WebGL2 Only

    • Activate this program and bind a buffer collection without going through the shader manager's detach/attach cycle. Used exclusively by the stencil write pass so it does not disrupt the currently attached scene shader.

      The caller is responsible for restoring shManager.attachedShader to null after the pass so the next real draw triggers a full re-attach.

      Parameters

      • bufferCollection: BufferCollection

      Returns void