Back to Filament

setTangentsAt

docs/android/dokka/filament-android/com.google.android.filament/-morph-target-buffer/set-tangents-at.md

1.75.01.1 KB
Original Source

//filament-android/com.google.android.filament/MorphTargetBuffer/setTangentsAt

setTangentsAt

[main]
open fun setTangentsAt(engine: Engine, targetIndex: Int, tangents: Array<Short>, count: Int)

Updates tangents for the given morph target. These quaternions must be represented as signed shorts, where real numbers in the [-1,+1] range multiplied by 32767.

Parameters

main

engineEngine instance
targetIndexThe index of morph target to be updated
tangentsAn array with at least "count*4" shorts
countnumber of short4 quaternions in tangents