pub struct Skin {
pub skeleton: SkeletonId,
pub joints: Vec<[u16; 4]>,
pub weights: Vec<[f32; 4]>,
}Expand description
Per-vertex skinning influences referencing joints of a skeleton asset.
Joint indices point into Skeleton::joints of skeleton.
Fields§
§skeleton: SkeletonId§joints: Vec<[u16; 4]>Up to 4 joint indices per vertex (u16 to match glTF JOINTS_0).
weights: Vec<[f32; 4]>Corresponding weights per vertex, normalized to sum to 1.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Skin
impl<'de> Deserialize<'de> for Skin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Skin
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