This commit is contained in:
Jérôme Bousquié
2026-07-08 15:46:50 +02:00
parent 724b658896
commit 7b25564483
25 changed files with 301 additions and 339 deletions
+4 -4
View File
@@ -15,13 +15,13 @@
#[repr(C)]
#[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)]
pub struct Vertex {
/// XYZ coordinates of this vertex in world space. Offset: 0 bytes.
/// XYZ coordinates of this vertex in world space. Offset: 0 bytes (12 bytes total as [f32;3]).
pub position: [f32; 3],
/// XYZ coordinates of the vertex normal. Offset: 12 bytes.
/// XYZ coordinates of the vertex normal. Offset: 12 bytes (12 bytes total as [f32;3]).
pub normal: [f32; 3],
/// UV texture coordinates. Offset: 24 bytes
/// UV texture coordinates. Offset: 24 bytes (8 bytes total as [f32;2]).
pub uv: [f32; 2],
/// RGBA color values. Offset: 32 bytes.
/// RGBA color values. Offset: 32 bytes (16 bytes total as [f32;4]).
pub color: [f32; 4],
}