variable number of textures?
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user