feat: additional implementation of renderer
This commit is contained in:
1 parent
639875b603
commit
8683f8b565
16 files changed
+197
-195
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
use vulkano::buffer::BufferContents;
|
||||
use crate::common::camera::Camera;
|
||||
use vulkano::buffer::BufferContents;
|
||||
|
||||
#[derive(BufferContents)]
|
||||
#[repr(C)]
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
pub mod camera;
|
||||
pub mod instance;
|
||||
pub mod vertex3;
|
||||
pub mod camera;
|
||||
+2
-6
@@ -13,15 +13,11 @@ pub struct Vertex3 {
|
||||
}
|
||||
|
||||
impl Vertex3 {
|
||||
pub fn new(
|
||||
position: [f32; 3],
|
||||
normal: [f32; 3],
|
||||
uv: [f32; 3],
|
||||
) -> Self {
|
||||
pub fn new(position: [f32; 3], normal: [f32; 3], uv: [f32; 3]) -> Self {
|
||||
Self {
|
||||
position,
|
||||
normal,
|
||||
uv
|
||||
uv,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user