setMorphWeights

actual fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int)

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

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

Parameters

instance

Instance of the component obtained from getInstance()

weights

Pointer to morph target weights to be updated.

offset

Index of the first morph target weight to set at instance.

expect fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int = 0)

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

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

Parameters

instance

Instance of the component obtained from getInstance()

weights

Pointer to morph target weights to be updated.

offset

Index of the first morph target weight to set at instance.

actual fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int)

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

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

Parameters

instance

Instance of the component obtained from getInstance()

weights

Pointer to morph target weights to be updated.

offset

Index of the first morph target weight to set at instance.

actual fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int)

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

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

Parameters

instance

Instance of the component obtained from getInstance()

weights

Pointer to morph target weights to be updated.

offset

Index of the first morph target weight to set at instance.

actual fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int)

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

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

Parameters

instance

Instance of the component obtained from getInstance()

weights

Pointer to morph target weights to be updated.

offset

Index of the first morph target weight to set at instance.