omega-game-engine
    Preparing search index...

    A class that manages the creation, compilation, and usage of WebGL shader programs, including handling vertex attributes and uniforms. *

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Constructors

    Properties

    _bitangentAttributeLocation: number = -1
    _buffers: WebGLBuffers = ...
    _className: string = "LitShader"
    _emissiveMapUniformLocation: null | WebGLUniformLocation = null
    _serializationIgnoreKeys: string[]
    _shaderProgram: WebGLProgram
    _tangentAttributeLocation: number = -1
    _uuid: string
    fragmentSource: null | string = null
    fragUri: string = ShaderSources.frag.color
    gl: WebGL2RenderingContext
    material: LitMaterial
    name: string = ''
    vertexSource: null | string = null
    vertexUri: string = ShaderSources.vertex.default
    SHADER_FUNCTIONS: { [key: string]: string } = ...

    A map of string keys to URLs for reusable shader function files. *

    Accessors

    • get initialized(): boolean

      Returns boolean

    • get shaderProgram(): WebGLProgram

      Returns WebGLProgram

    Methods

    • Deserializes the object from a JSON-compatible data structure.

      • This method is intended to be overridden by subclasses to handle their specific properties.

      Parameters

      Returns Promise<void>