Enum gltf::mesh::Attribute
[−]
[src]
pub enum Attribute<'a> { Colors(u32, Colors<'a>), Joints(u32, Joints<'a>), Positions(Positions<'a>), Normals(Normals<'a>), Tangents(Tangents<'a>), TexCoords(u32, TexCoords<'a>), Weights(u32, Weights<'a>), }
Vertex attribute data.
Variants
Colors(u32, Colors<'a>)
Vertex colors.
Joints(u32, Joints<'a>)
Vertex joints. Refer to the documentation on morph targets and skins for more information.
Positions(Positions<'a>)
XYZ vertex positions of type [f32; 3]
.
Normals(Normals<'a>)
XYZ vertex normals of type [f32; 3]
.
Tangents(Tangents<'a>)
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.
TexCoords(u32, TexCoords<'a>)
UV texture co-ordinates.
Weights(u32, Weights<'a>)
Weights. Refer to the documentation on morph targets for more information.
Trait Implementations
impl<'a> Clone for Attribute<'a>
[src]
fn clone(&self) -> Attribute<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more