API Reference

Class List

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

MorphInstance(morph)

Parameters

morphpc.Morph

The pc.Morph to instance.

Methods

destroy()

Frees video memory allocated by this object.

getWeight(index)

Gets current weight of the specified morph target.

Parameters

indexnumber

An index of morph target.

Returns

number

Weight.

setWeight(index, weight)

Sets weight of the specified morph target.

Parameters

indexnumber

An index of morph target.

weightnumber

Weight.

update(mesh)

Performs morphing. Called automatically by renderer.

Parameters

meshpc.Mesh

Base mesh for the morph.

updateBounds(mesh)

Calculates AABB for this morph instance. Called automatically by renderer.

Parameters

meshpc.Mesh

Base mesh for the morph.