Class OverrideMaterialManager

An override material manager.

Includes a workaround that fixes override materials for skinned meshes and instancing. Doesn't fix uniforms such as normal maps and displacement maps. Using the workaround may have a negative impact on performance if the scene contains a lot of meshes.

Implements

Implements

  • Disposable

Constructors

Accessors

Methods

Constructors

Accessors

  • get workaroundEnabled(): boolean
  • Indicates whether the override material workaround is enabled.

    Returns boolean

  • set workaroundEnabled(arg): void
  • Enables or disables the override material workaround globally.

    This only affects post processing passes and effects.

    Parameters

    • arg: boolean

    Returns void

Methods

  • Performs cleanup tasks.

    Returns void

  • Sets the override material.

    Parameters

    • material: Material

      The material.

    Returns void