The name to call the Material by.
Readonly
typeReturns true if the material has any areas (color or texture) with alpha < 1. ⚠️ CAUTION: Computionally expensive for textured materials, see Texture.hasTransparency
See EventTarget.addEventListener for reference. Works with EventListenerUnified and EventUnified
Optional
_options: boolean | AddEventListenerOptionsSee EventTarget.dispatchEvent for reference. Works with with EventUnified
Returns an associative array with the same attributes as the given mutator, but with the corresponding types as string-values Does not recurse into objects!
Collect the attributes of the instance and their values applicable for animation. Basic functionality is identical to getMutator, returned mutator should then be reduced by the subclassed instance
Collect the attributes of the instance and their values applicable for the user interface. Basic functionality is identical to getMutator, returned mutator should then be reduced by the subclassed instance
Updates the attribute values of the instance according to the state of the mutator. The mutation may be restricted to a subset of the mutator and the event dispatching suppressed. Uses mutateBase, but can be overwritten in subclasses
See EventTarget.removeEventListener for reference. Works with EventListenerUnified and EventUnified
Optional
_options: boolean | AddEventListenerOptionsReturns a Serialization of this resource. By default only the data needed to load it from the external source is serialized ("url", "name", "idResource"). Set _super to true to serialize all data.
Returns a Serialization of this resource. By default only the data needed to load it from the external source is serialized ("url", "name", "idResource"). Set _super to true to serialize all data.
Updates the values of the given mutator according to the current state of the instance
Static
get
A Material loaded from a glTF-File.
Authors
Jonas Plotzky, HFU, 2024