pub struct Skin { /* private fields */ }Expand description
A glTF skin: the joint nodes and their inverse bind matrices used to compute the joint matrices for GPU skinning.
Implementations§
Source§impl Skin
impl Skin
Sourcepub fn new(joints: Vec<u32>, inverse_bind_matrices: Vec<Mat4>) -> Self
pub fn new(joints: Vec<u32>, inverse_bind_matrices: Vec<Mat4>) -> Self
Creates a skin from joint node indices and matching inverse bind matrices.
Cross-object validation occurs when the containing asset is built.
Sourcepub fn inverse_bind_matrices(&self) -> &[Mat4]
pub fn inverse_bind_matrices(&self) -> &[Mat4]
Returns the inverse bind matrix corresponding to each joint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Skin
impl RefUnwindSafe for Skin
impl Send for Skin
impl Sync for Skin
impl Unpin for Skin
impl UnsafeUnpin for Skin
impl UnwindSafe for Skin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more