feat(rendering): rendering textures with camera

Co-authored-by: BitSyndicate <contact@bitsyndicate.de>
This commit is contained in:
Chance 2025-04-17 20:33:28 -04:00 committed by lily
parent dfb3b04c9d
commit 23d5023fb4
Signed by: lily
GPG key ID: 601F3263FBCBC4B9
9 changed files with 1037 additions and 329 deletions

14
src/model.rs Normal file
View 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,
}