Class: MorphInstance

pc.MorphInstance

An instance of pc.Morph. Contains weights to assign to every pc.MorphTarget, holds morphed buffer and associated data.

Constructor

(private) new MorphInstance(morph)

Parameters:
Name Type Description
morph pc.Morph The pc.Morph to instance.
Source:

Methods

destroy()

Frees video memory allocated by this object.
Source:

(private) getWeight(index) → {Number}

Gets current weight of the specified morph target.
Parameters:
Name Type Description
index Number An index of morph target.
Source:
Returns:
Weight
Type
Number

(private) setWeight(index, weight)

Sets weight of the specified morph target.
Parameters:
Name Type Description
index Number An index of morph target.
weight Number Weight
Source:

(private) update(mesh)

Performs morphing. Called automatically by renderer.
Parameters:
Name Type Description
mesh pc.Mesh Base mesh for the morph.
Source:

(private) updateBounds(mesh)

Calculates AABB for this morph instance. Called automatically by renderer.
Parameters:
Name Type Description
mesh pc.Mesh Base mesh for the morph.
Source: