Type Property

boneWeights

The semantic for bone weight data, used for skeletal animation of skinned surfaces.

Declaration

static let boneWeights: SCNGeometrySource.Semantic

Discussion

For a geometry source, this semantic identifies data containing skeletal animation data for each vertex in the geometry. SceneKit uses this information to determine how much a vertex’s position is influenced by the positions of bone nodes in the skeleton.

For a custom shader program, you use this semantic to bind SceneKit’s bone weight data to an input attribute of the shader.

For details on skeletal animation, see SCNSkinner.

See Also

Skeletal Animation Semantics

static let boneIndices: SCNGeometrySource.Semantic

The semantic for bone index data, used for skeletal animation of skinned surfaces.