refactor renderer responsable + docs + schema
This commit is contained in:
+18
-1
@@ -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],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user