BoneWeight 骨骼权重

Struct

Skinning bone weights of a vertex in the mesh.

网格中一个顶点的蒙皮骨骼权重。

Each vertex is skinned with up to four bones. All weights should sum up to one.  Weights and bone indices should be defined in the order of decreasing weight.  If a vertex is affected by less than four bones, the remaining weights should be zeroes.

每一个被蒙皮的点最多有4个骨骼。所有权重的和应该为1。权重和骨骼索引应该以权重递减的顺序定义。如果一个顶点被少于四个骨骼影响,剩下的权重应该为0。

参考:Mesh.boneWeights 变量.

Variables变量

  • weight0
    Skinning weight for first bone.
          第一个骨骼的蒙皮权重。
  • weight1
    Skinning weight for second bone.
          第二个骨骼的蒙皮权重。
  • weight2
    Skinning weight for third bone.
          第三个骨骼的蒙皮权重
  • weight3
    Skinning weight for fourth bone.
          第四个骨骼的蒙皮权重
  • boneIndex0
    Index of first bone.
          第一个骨骼的索引
  • boneIndex1
    Index of second bone.
          第二个骨骼的索引
  • boneIndex2
    Index of third bone.
          第三个骨骼的索引
  • boneIndex3
    Index of fourth bone.
          第四个骨骼的索引
,