#[repr(C)]pub struct Vertex {
pub position: Vector3<f32>,
pub normal: Vector3<f32>,
pub tangent: Vector4<f32>,
pub tex_coords: Vector2<f32>,
}Expand description
Contains a position, normal and texture coordinates vectors.
Fields§
§position: Vector3<f32>Position
normal: Vector3<f32>Normalized normal
tangent: Vector4<f32>Tangent normal The w component is the handedness of the tangent basis (can be -1 or 1)
tex_coords: Vector2<f32>Texture coordinates
Trait Implementations§
impl Copy for Vertex
impl StructuralPartialEq for Vertex
Auto Trait Implementations§
impl Freeze for Vertex
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin for Vertex
impl UnwindSafe for Vertex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more