Protected
_materialPrivate
_materialPrivate
_materialsProtected
_textureReadonly
templatesProtected
_createOptional
oldMaterial: IMaterialParameters | Partial<TM>Protected
_disposeOptional
target?: IMaterial<IMaterialEvent<IMaterialEventTypes>, IMaterialEventTypes>Protected
_getProtected
_materialPrivate
_refreshCreates a new material if a compatible template is found or apply minimal upgrades and returns the original material. Also checks from the registered materials, if one with the same uuid is found, it is returned instead with the new parameters. Also caches the response. Returns the same material if its already upgraded.
the material to upgrade/check
Optional
createOptional
materialOptional
useCreate a material from the template name or material type
Optional
filename: stringOptional
params: Material<Event, string> | IMaterialParametersThis is done automatically on material dispose.
Generated using TypeDoc
Material Manager Utility class to manage materials. Maintains a library of materials and material templates that can be used to manage or create new materials. Used in AssetManager to manage materials.