Skip to main content

Material

Index

Constructors

constructor

Accessors

color

isUsingScreenTexture

  • get isUsingScreenTexture(): boolean
  • Returns boolean

name

  • get name(): string
  • Returns string

Methods

addImageSource

  • addImageSource(textureUniformName: string, image: ImageSource): void
  • Parameters

    Returns void

getShader

removeImageSource

  • removeImageSource(textureName: string): void
  • Parameters

    • textureName: string

    Returns void

update

  • update(callback: (shader: Shader) => any): void
  • Parameters

    • callback: (shader: Shader) => any

      Returns void

    uploadAndBind

    • uploadAndBind(gl: WebGL2RenderingContext, startingTextureSlot?: number): void
    • Parameters

      • gl: WebGL2RenderingContext
      • startingTextureSlot: number = 2

      Returns void

    use

    • use(): void
    • Returns void