morphing

Controls if the renderable has legacy vertex morphing targets, zero by default.

For legacy morphing, the attached VertexBuffer must provide data in the appropriate VertexAttribute slots (MORPH_POSITION_0 etc). Legacy morphing only supports up to 4 morph targets.

Return

Builder reference for chaining calls.

Parameters

targetCount

the number of morph targets


Controls if the renderable has vertex morphing targets, zero by default.

For standard morphing, a MorphTargetBuffer must be provided. See also RenderableManager.setMorphWeights, which can be called on a per-frame basis to advance the animation.

Return

Builder reference for chaining calls.

Parameters

morphTargetBuffer

the morph target buffer


fun morphing(level: Int, primitiveIndex: Int, offset: Int): RenderableManager.Builder

Specifies the morph target buffer offset for a primitive.

Return

Builder reference for chaining calls.

Parameters

level

the level of detail (lod), only 0 can be specified

primitiveIndex

zero-based index of the primitive

offset

specifies where in the morph target buffer to start reading (expressed as a number of vertices)