Struct gltf_json::mesh::MorphTargets []

pub struct MorphTargets {
    pub positions: Option<Index<Accessor>>,
    pub normals: Option<Index<Accessor>>,
    pub tangents: Option<Index<Accessor>>,
}

A dictionary mapping attributes to their deviations in the Morph Target.

Fields

XYZ vertex position displacements of type [f32; 3].

XYZ vertex normal displacements of type [f32; 3].

XYZ vertex tangent displacements of type [f32; 3].

Trait Implementations

impl Clone for MorphTargets

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MorphTargets

Formats the value using the given formatter.

impl Validate for MorphTargets

Validates only the invariants required for the library to function safely.

Validates the data against the glTF 2.0 specification.