doc
This commit is contained in:
@@ -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],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user