Struct gltf_json::mesh::MorphTarget
source · pub struct MorphTarget {
pub positions: Option<Index<Accessor>>,
pub normals: Option<Index<Accessor>>,
pub tangents: Option<Index<Accessor>>,
}
Expand description
A dictionary mapping attributes to their deviations in the Morph Target.
Fields§
§positions: Option<Index<Accessor>>
XYZ vertex position displacements of type [f32; 3]
.
normals: Option<Index<Accessor>>
XYZ vertex normal displacements of type [f32; 3]
.
tangents: Option<Index<Accessor>>
XYZ vertex tangent displacements of type [f32; 3]
.
Trait Implementations§
source§impl Clone for MorphTarget
impl Clone for MorphTarget
source§fn clone(&self) -> MorphTarget
fn clone(&self) -> MorphTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MorphTarget
impl Debug for MorphTarget
source§impl<'de> Deserialize<'de> for MorphTarget
impl<'de> Deserialize<'de> for MorphTarget
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
source§impl Serialize for MorphTarget
impl Serialize for MorphTarget
Auto Trait Implementations§
impl RefUnwindSafe for MorphTarget
impl Send for MorphTarget
impl Sync for MorphTarget
impl Unpin for MorphTarget
impl UnwindSafe for MorphTarget
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