Enum gltf::mesh::Attribute [] [src]

pub enum Attribute<'a> {
    Colors(u32Colors<'a>),
    Joints(u32Joints<'a>),
    Positions(Positions<'a>),
    Normals(Normals<'a>),
    Tangents(Tangents<'a>),
    TexCoords(u32TexCoords<'a>),
    Weights(u32Weights<'a>),
}

Vertex attribute data.

Variants

Vertex colors.

Vertex joints. Refer to the documentation on morph targets and skins for more information.

XYZ vertex positions of type [f32; 3].

XYZ vertex normals of type [f32; 3].

XYZW vertex tangents of type [f32; 4] where the w component is a sign value (-1 or +1) indicating the handedness of the tangent basis.

UV texture co-ordinates.

Weights. Refer to the documentation on morph targets for more information.

Trait Implementations

impl<'a> Clone for Attribute<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for Attribute<'a>
[src]

Formats the value using the given formatter.