morphing

actual fun morphing(targetCount: Int): RenderableManager.Builder

Controls if the renderable has legacy vertex morphing targets, zero by default. This is required to enable GPU morphing.

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 and will be deprecated in the future. Legacy morphing must be enabled on the material definition: either via the legacyMorphing material attribute or by calling filamat.MaterialBuilder.useLegacyMorphing().

See also RenderableManager.setMorphWeights(), which can be called on a per-frame basis to advance the animation.

Return

Builder reference for chaining calls.

Parameters

targetCount

the number of morph targets


actual fun morphing(morphTargetBuffer: MorphTargetBuffer): RenderableManager.Builder

Controls if the renderable has vertex morphing targets, zero by default. This is required to enable GPU morphing.

Filament supports two morphing modes: standard (default) and legacy.

For standard morphing, A MorphTargetBuffer must be provided. Standard morphing supports up to CONFIG_MAX_MORPH_TARGET_COUNT morph targets.

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

expect fun morphing(targetCount: Int): RenderableManager.Builder

Controls if the renderable has legacy vertex morphing targets, zero by default. This is required to enable GPU morphing.

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 and will be deprecated in the future. Legacy morphing must be enabled on the material definition: either via the legacyMorphing material attribute or by calling filamat.MaterialBuilder.useLegacyMorphing().

See also RenderableManager.setMorphWeights(), which can be called on a per-frame basis to advance the animation.

Return

Builder reference for chaining calls.

Parameters

targetCount

the number of morph targets


expect fun morphing(morphTargetBuffer: MorphTargetBuffer): RenderableManager.Builder

Controls if the renderable has vertex morphing targets, zero by default. This is required to enable GPU morphing.

Filament supports two morphing modes: standard (default) and legacy.

For standard morphing, A MorphTargetBuffer must be provided. Standard morphing supports up to CONFIG_MAX_MORPH_TARGET_COUNT morph targets.

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

actual fun morphing(targetCount: Int): RenderableManager.Builder

Controls if the renderable has legacy vertex morphing targets, zero by default. This is required to enable GPU morphing.

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 and will be deprecated in the future. Legacy morphing must be enabled on the material definition: either via the legacyMorphing material attribute or by calling filamat.MaterialBuilder.useLegacyMorphing().

See also RenderableManager.setMorphWeights(), which can be called on a per-frame basis to advance the animation.

Return

Builder reference for chaining calls.

Parameters

targetCount

the number of morph targets


actual fun morphing(morphTargetBuffer: MorphTargetBuffer): RenderableManager.Builder

Controls if the renderable has vertex morphing targets, zero by default. This is required to enable GPU morphing.

Filament supports two morphing modes: standard (default) and legacy.

For standard morphing, A MorphTargetBuffer must be provided. Standard morphing supports up to CONFIG_MAX_MORPH_TARGET_COUNT morph targets.

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

actual fun morphing(targetCount: Int): RenderableManager.Builder

Controls if the renderable has legacy vertex morphing targets, zero by default. This is required to enable GPU morphing.

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 and will be deprecated in the future. Legacy morphing must be enabled on the material definition: either via the legacyMorphing material attribute or by calling filamat.MaterialBuilder.useLegacyMorphing().

See also RenderableManager.setMorphWeights(), which can be called on a per-frame basis to advance the animation.

Return

Builder reference for chaining calls.

Parameters

targetCount

the number of morph targets


actual fun morphing(morphTargetBuffer: MorphTargetBuffer): RenderableManager.Builder

Controls if the renderable has vertex morphing targets, zero by default. This is required to enable GPU morphing.

Filament supports two morphing modes: standard (default) and legacy.

For standard morphing, A MorphTargetBuffer must be provided. Standard morphing supports up to CONFIG_MAX_MORPH_TARGET_COUNT morph targets.

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

actual fun morphing(targetCount: Int): RenderableManager.Builder

Controls if the renderable has legacy vertex morphing targets, zero by default. This is required to enable GPU morphing.

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 and will be deprecated in the future. Legacy morphing must be enabled on the material definition: either via the legacyMorphing material attribute or by calling filamat.MaterialBuilder.useLegacyMorphing().

See also RenderableManager.setMorphWeights(), which can be called on a per-frame basis to advance the animation.

Return

Builder reference for chaining calls.

Parameters

targetCount

the number of morph targets


actual fun morphing(morphTargetBuffer: MorphTargetBuffer): RenderableManager.Builder

Controls if the renderable has vertex morphing targets, zero by default. This is required to enable GPU morphing.

Filament supports two morphing modes: standard (default) and legacy.

For standard morphing, A MorphTargetBuffer must be provided. Standard morphing supports up to CONFIG_MAX_MORPH_TARGET_COUNT morph targets.

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