跳转到内容

MeshSkinChunks

此内容尚不支持你的语言。

Defined in: sdk/src/asset/meshFormat.ts:186

The pieces a skinned mesh is drawn in, when its bones are more than one draw can carry. Each is a run of the mesh’s indices whose vertices are moved only by the chunk’s bones, at most MESH_MAX_BONES of them; a vertex two chunks share is written once in each.

boneCounts: Uint16Array

Defined in: sdk/src/asset/meshFormat.ts:190

How many bones each chunk names.


bones: Uint16Array

Defined in: sdk/src/asset/meshFormat.ts:192

Each chunk’s bones in turn, as indices into the bind matrices: a vertex’s joint k is its chunk’s k-th bone.


ranges: Uint32Array

Defined in: sdk/src/asset/meshFormat.ts:188

Two per chunk: its first index and how many indices it has. Together they cover the indices in order.