Options
All
  • Public
  • Public/Protected
  • All
Menu

Manages the defines for the Material

Hierarchy

  • MaterialDefines

Indexable

[id: string]: any

Index

Constructors

  • Creates a new instance

    Parameters

    • Optional externalProperties: {}

      list of external properties to inject into the object

      • [name: string]: { default: any; type: string }
        • default: any
        • type: string

    Returns MaterialDefines

Accessors

  • get isDirty(): boolean
  • Specifies if the material needs to be re-calculated

    Returns boolean

Methods

  • Clones this instance's defines to another instance

    Parameters

    Returns void

  • Specifies if two material defines are equal

    Parameters

    Returns boolean

    • Boolean indicating if the material defines are equal (true) or not (false)
  • markAllAsDirty(): void
  • Marks the material to indicate all of its defines need to be re-calculated

    Returns void

  • markAsAttributesDirty(): void
  • Marks the attribute state as changed

    Returns void

  • markAsFresnelDirty(): void
  • Marks the fresnel state as changed

    Returns void

  • markAsImageProcessingDirty(): void
  • Marks the material to indicate that image processing needs to be re-calculated

    Returns void

  • markAsLightDirty(disposed?: boolean): void
  • Marks the material to indicate the lights need to be re-calculated

    Parameters

    • Optional disposed: boolean

      Defines whether the light is dirty due to dispose or not

    Returns void

  • markAsMiscDirty(): void
  • Marks the misc state as changed

    Returns void

  • markAsPrePassDirty(): void
  • Marks the prepass state as changed

    Returns void

  • markAsProcessed(): void
  • Marks the material to indicate that it has been re-calculated

    Returns void

  • markAsTexturesDirty(): void
  • Marks the texture state as changed

    Returns void

  • markAsUnprocessed(): void
  • Marks the material to indicate that it needs to be re-calculated

    Returns void

  • rebuild(): void
  • Rebuilds the material defines

    Returns void

  • reset(): void
  • Resets the material define values

    Returns void

  • toString(): string
  • Converts the material define values to a string

    Returns string

    • String of material define information

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme