refactor renderer responsable + docs + schema

This commit is contained in:
Jérôme Bousquié
2026-07-06 17:37:13 +02:00
parent 47851b8f61
commit 8e57dc783b
11 changed files with 256 additions and 136 deletions
+18 -1
View File
@@ -23,4 +23,21 @@ pub struct Vertex {
pub color: [f32; 4],
}
// Default values for stability
impl Default for Vertex {
// Default values for stability
fn default() -> Self {
Self {
// Default position at center (0, 0)
position: [0.0, 0.0, 0.0],
// Normal pointing upward (standard for lighting calculations)
normal: [0.0, 1.0, 0.0],
// UV coordinates at the origin of the texture
uv: [0.0, 0.0],
// Opaque white color by default
color: [1.0, 1.0, 1.0, 1.0],
}
}
}