Back to Filament

setMorphWeights

docs/android/dokka/filament-android/com.google.android.filament/-renderable-manager/set-morph-weights.md

1.75.0904 B
Original Source

//filament-android/com.google.android.filament/RenderableManager/setMorphWeights

setMorphWeights

[main]
open fun setMorphWeights(i: Int, weights: Array<Float>, offset: Int)

Updates the vertex morphing weights on a renderable, all zeroes by default.

The renderable must be built with morphing enabled. In legacy morphing mode, only the first 4 weights are considered.

See also

com.google.android.filament.RenderableManager.Builder