chaos_framework/graphics/vertex.rs
1use glam::{Vec2, Vec3, Vec4};
2
3
4
5#[derive(PartialEq, Debug, Clone, Copy)]
6pub struct Vertex {
7 pub position: Vec3,
8 pub color: Vec4,
9 pub tex_coords: Vec2,
10 pub normal: Vec3,
11}
12
13impl Vertex {
14 pub fn new(position: Vec3, color: Vec4, tex_coords: Vec2, normal: Vec3) -> Self {
15 Self {
16 position,
17 color,
18 tex_coords,
19 normal,
20 }
21 }
22}