Skip to main content

skinning_matrices

Function skinning_matrices 

Source
pub fn skinning_matrices(
    p: &Project,
    mesh_node: NodeId,
    skel_node: NodeId,
    pose: &Pose,
) -> Result<Vec<Mat4>>
Expand description

World-space skinning matrices (global joint transform, relative to mesh node) for a mesh bound to skel_node, under pose.

Each entry is inv(meshWorld) * skelWorld * jointGlobal_pose(j) * inv(jointGlobal_bind(j)), matching glTF skinning semantics: at bind pose the result is the identity.