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