feat: add UVs to shader pipeline

This commit is contained in:
alphafetus committed 2026-05-17 11:47:04 -04:00
1 parent 170a7ad645
commit b7e31732e6
4 files changed
+15 -6

No files matched your search

+4
View File
@@ -8,16 +8,20 @@ pub struct Vertex3 {
pub(crate) position: [f32; 3],
#[format(R32G32B32_SFLOAT)]
pub(crate) normal: [f32; 3],
#[format(R32G32B32_SFLOAT)]
pub(crate) uv: [f32; 3],
}
impl Vertex3 {
pub fn new(
position: [f32; 3],
normal: [f32; 3],
uv: [f32; 3],
) -> Self {
Self {
position,
normal,
uv
}
}
}