variable number of textures?

This commit is contained in:
2021-10-22 11:03:50 +02:00
parent 0ccc56bbad
commit 8d5457c810
6 changed files with 52 additions and 35 deletions

View File

@@ -6,7 +6,7 @@ use winit::event::Event;
use level::{load_level, save_level};
use player::Player;
use crate::game::components::FpsCounter;
use crate::game::entities::FpsCounter;
use crate::text::create_brush;
use crate::{config::LogConfig, vulkan};
use crate::input::InputState;
@@ -17,7 +17,7 @@ use crate::vulkan::pipelines::vs::ty::ObjectUniformData;
pub mod player;
mod level;
mod components;
mod entities;
pub struct GameState {
pub paused: bool,
@@ -176,8 +176,7 @@ impl TestGame {
let mesh_id = renderer.upload_mesh(cpu_mesh, Some(gltf_path.to_string()));
let mesh_handle = MeshHandle {
index: mesh_id,
diffuse_handle: diffuse_id,
normal_handle: Some(normal_id),
textures: vec![diffuse_id, normal_id],
original_path: Some(gltf_path.to_string()),
pipeline_index: 0
};