An instance of Morph. Contains weights to assign to every MorphTarget, manages selection of active morph targets.
new MorphInstance(morph: Morph): MorphInstance
Create a new MorphInstance instance.
The Morph to instance.
morph: Morph
The morph with its targets, which is being instanced.
clone(): MorphInstance
Clones a MorphInstance. The returned clone uses the same Morph and weights are set to defaults.
A clone of the specified MorphInstance.
destroy(): void
Frees video memory allocated by this object.
void
getWeight(key: string | number): number
Gets current weight of the specified morph target.
An identifier for the morph target. Either the weight index or the weight name.
string | number
number
Weight.
setWeight(key: string | number, weight: number): void
Sets weight of the specified morph target.
An identifier for the morph target. Either the weight index or the weight name.
string | number
number
Weight.
void
update(): void
Selects active morph targets and prepares morph for rendering. Called automatically by renderer.
void