@lightningjs/renderer
    Preparing search index...

    Class WebGlShaderProgram

    Implements

    • CoreShaderProgram
    Index

    Constructors

    Properties

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

    Vertex Array Object

    Used by WebGL2 Only

    Methods

    • 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