跳转到内容

MeshMorphTargets

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

Defined in: asset/meshFormat.ts:82

The shapes a mesh can be blended towards, as offsets from the vertices it carries. Deltas rather than whole positions because a target usually moves a fraction of the mesh, and what is stored is then zero wherever it says nothing.

deltas: Float32Array

Defined in: asset/meshFormat.ts:95

targets * vertexCount * (hasNormals ? 6 : 3) floats: for each target, for each vertex, the position delta and — when carried — the normal delta. Float32 and not half: half is what the GPU wants, and narrowing here would make every other reader (a collider, an editor preview) inherit that choice.


hasNormals: boolean

Defined in: asset/meshFormat.ts:88

Whether each target carries a normal delta behind its position delta. A mesh-wide fact, not a per-target one: the deltas are one packed array and a reader cannot find target i without a fixed stride.


names: string[]

Defined in: asset/meshFormat.ts:84

One name per target, in the order weights address them.