Struct building_blocks_mesh::PosNormTexMesh [−][src]
pub struct PosNormTexMesh {
pub positions: Vec<[f32; 3]>,
pub normals: Vec<[f32; 3]>,
pub tex_coords: Vec<[f32; 2]>,
pub indices: Vec<u32>,
}
Fields
positions: Vec<[f32; 3]>
normals: Vec<[f32; 3]>
Surface normal vectors. Not guaranteed to be normalized.
tex_coords: Vec<[f32; 2]>
Texture coordinates, AKA UVs.
indices: Vec<u32>
All of the triangles in the mesh, wound counter-clockwise (right-hand rule).
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PosNormTexMesh
impl Send for PosNormTexMesh
impl Sync for PosNormTexMesh
impl Unpin for PosNormTexMesh
impl UnwindSafe for PosNormTexMesh
Blanket Implementations
Mutably borrows from an owned value. Read more