Creates a clone of a material.
The clones tags will be adjusted according to the "tagNamingStrategy" option.
Predefined material parameters will be applied to the material right away.
Optional options: MaterialCloneOptionsReturns material with certain id if already available in the scene.
If this is not the case, material is created from registered material definitions, which are most likely coming
from "Material assets" on the
Combeenation server.
Waits until textures of material are fully loaded and shader is compiled. In this way "flickering" effects
will be avoided, since the material would be incomplete without its loaded textures.
Optional mesh: AbstractMeshRequired for shader compilation check, can be omitted if this check should not be done.
Use setMaterialOnMesh instead if the material should be applied on the mesh immediately.
Registers a callback function, which will be called when a material definition for a requested material id is not found. Can be used to lazy load materials or to create fallback material definitions on the fly.
Register material definitions, which serves as a lookup for creating materials via getOrCreateMaterial or setMaterialOnMesh.
Assigns material with certain id to desired mesh.
Creates the material if not already available (see getOrCreateMaterial).
Generated using TypeDoc
Manager for material related tasks