setTangentsAt

actual fun setTangentsAt(engine: Engine, targetIndex: Int, tangents: ShortArray, count: Int)

Upload tangent data for a specific morph target.

The tangents array must contain count vertices, with 2 shorts per vertex (quaternion encoded).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

tangents

Array of tangent offsets (encoded as quaternions).

count

Number of vertices being updated.

expect fun setTangentsAt(engine: Engine, targetIndex: Int, tangents: ShortArray, count: Int)

Upload tangent data for a specific morph target.

The tangents array must contain count vertices, with 2 shorts per vertex (quaternion encoded).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

tangents

Array of tangent offsets (encoded as quaternions).

count

Number of vertices being updated.

actual fun setTangentsAt(engine: Engine, targetIndex: Int, tangents: ShortArray, count: Int)

Upload tangent data for a specific morph target.

The tangents array must contain count vertices, with 2 shorts per vertex (quaternion encoded).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

tangents

Array of tangent offsets (encoded as quaternions).

count

Number of vertices being updated.

actual fun setTangentsAt(engine: Engine, targetIndex: Int, tangents: ShortArray, count: Int)

Upload tangent data for a specific morph target.

The tangents array must contain count vertices, with 2 shorts per vertex (quaternion encoded).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

tangents

Array of tangent offsets (encoded as quaternions).

count

Number of vertices being updated.

actual fun setTangentsAt(engine: Engine, targetIndex: Int, tangents: ShortArray, count: Int)

Upload tangent data for a specific morph target.

The tangents array must contain count vertices, with 2 shorts per vertex (quaternion encoded).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

tangents

Array of tangent offsets (encoded as quaternions).

count

Number of vertices being updated.