feat: add UVs to shader pipeline
This commit is contained in:
1 parent
170a7ad645
commit
b7e31732e6
4 files changed
+15
-6
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user