1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use vek::vec3::Vec3;

pub struct Vertex<T> {
    pub position: Vec3<f32>,
    pub normal: Vec3<f32>,
    pub data: T,
}

impl<T> Vertex<T> {
    pub fn new(position: Vec3<f32>, normal: Vec3<f32>, data: T) -> Self {
        Vertex {
            position,
            normal,
            data,
        }
    }
}