diff options
author | HampusM <hampus@hampusmat.com> | 2025-01-14 13:32:02 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-01-14 13:32:02 +0100 |
commit | 5fa358a465d32d1420a8cdfd23dd1a88ca4ae797 (patch) | |
tree | 8ae7c9cd7886bb81479ea2937f928b6a452d9654 /engine/src/vertex.rs | |
parent | 3e509487b6f241f60c77bf3eb62c79a8aafa1143 (diff) |
feat(engine): add simple collision
Diffstat (limited to 'engine/src/vertex.rs')
-rw-r--r-- | engine/src/vertex.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/src/vertex.rs b/engine/src/vertex.rs index 897ee97..5739323 100644 --- a/engine/src/vertex.rs +++ b/engine/src/vertex.rs @@ -7,11 +7,12 @@ builder! { #[builder(name = Builder, derives = (Debug, Default))] #[derive(Debug, Clone, Default)] #[repr(C)] +#[non_exhaustive] pub struct Vertex { - pos: Vec3<f32>, - texture_coords: Vec2<f32>, - normal: Vec3<f32>, + pub pos: Vec3<f32>, + pub texture_coords: Vec2<f32>, + pub normal: Vec3<f32>, } } |