pub type JointMatrix = Mat4;Expand description
One joint’s skinning matrix: the joint’s transform times the inverse of the bind-pose transform, applied to a vertex in the mesh’s local space.
This is the element type of the array<mat4x4<f32>> a skinned variant
binds at JOINTS_BINDING, so a mesh
uploads a &[JointMatrix] there and a vertex’s joint index selects one.
Aliased Type§
#[repr(C)]pub struct JointMatrix {
pub x_axis: Vec4,
pub y_axis: Vec4,
pub z_axis: Vec4,
pub w_axis: Vec4,
}Fields§
§x_axis: Vec4§y_axis: Vec4§z_axis: Vec4§w_axis: Vec4