API Reference

Class List

pc.MorphInstance

An instance of pc.Morph. Contains weights to assign to every pc.MorphTarget, manages selection of active morph targets.

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

Selects active morph targets and prepares morph for rendering.

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()

Selects active morph targets and prepares morph for rendering. Called automatically by renderer.