feat(rendering): rendering textures with camera
Co-authored-by: BitSyndicate <contact@bitsyndicate.de>
This commit is contained in:
parent
dfb3b04c9d
commit
23d5023fb4
9 changed files with 1037 additions and 329 deletions
14
src/model.rs
Normal file
14
src/model.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
use crate::texture::Texture;
|
||||
pub struct Material {
|
||||
pub name: String,
|
||||
pub diffuse_texture: Texture,
|
||||
pub bind_group: wgpu::BindGroup,
|
||||
}
|
||||
|
||||
pub struct Mesh {
|
||||
pub name: String,
|
||||
pub vertex_buffer: wgpu::Buffer,
|
||||
pub index_buffer: wgpu::Buffer,
|
||||
pub num_elements: u32,
|
||||
pub material: usize,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue