API Reference

Class List

pc.MorphTarget

A Morph Target (also known as Blend Shape) contains deformation data to apply to existing mesh. Multiple morph targets can be blended together on a mesh. This is useful for effects that are hard to achieve with conventional animation and skinning.

Summary

Details

Constructor

MorphTarget(options)

Parameters

optionsobject

Object for passing optional arguments.

options.deltaPositionsArrayBuffer

An array of 3-dimensional vertex position offsets.

options.deltaPositionsTypenumber

A format to store position offsets inside pc.VertexBuffer. Defaults to pc.TYPE_FLOAT32 if not provided.

options.deltaNormalsArrayBuffer

An array of 3-dimensional vertex normal offsets.

options.deltaNormalsTypenumber

A format to store normal offsets inside pc.VertexBuffer. Defaults to pc.TYPE_FLOAT32 if not provided.

options.namestring

Name.

options.aabbpc.BoundingBox

Bounding box. Will be automatically generated, if undefined.

options.defaultWeightnumber

Default blend weight to use for this morph target.