OverrideMaterialManager
Implements:
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.
Static Member Summary
Static Public Members | ||
public static get |
Indicates whether the override material workaround is enabled. |
|
public static set |
Enables or disables the override material workaround globally. |
Constructor Summary
Public Constructor | ||
public |
constructor(material: Material) Constructs a new override material manager. |
Method Summary
Public Methods | ||
public |
dispose() Performs cleanup tasks. |
|
public |
setMaterial(material: Material) Sets the override material. |
Static Public Members
Public Constructors
public constructor(material: Material) source
Constructs a new override material manager.
Params:
Name | Type | Attribute | Description |
material | Material |
|
An override material. |