pc.MorphInstance
An instance of pc.Morph. Contains weights to assign to every pc.MorphTarget, holds morphed buffer and associated data.
Summary
Methods
| destroy | Frees video memory allocated by this object. |
| getWeight | Gets current weight of the specified morph target. |
| setWeight | Sets weight of the specified morph target. |
| update | Performs morphing. |
| updateBounds | Calculates AABB for this morph instance. |
Details
Constructor
Methods
destroy()
Frees video memory allocated by this object.
getWeight(index)
Gets current weight of the specified morph target.
Parameters
| index | number | An index of morph target. |
Returns
numberWeight.
setWeight(index, weight)
Sets weight of the specified morph target.
Parameters
| index | number | An index of morph target. |
| weight | number | Weight. |