MAJOR rendering overhaul. Snow deformation, persistent light, flowmap out. Also ECS architexture overhaul
This commit is contained in:
@@ -5,14 +5,11 @@ use crate::world::World;
|
||||
|
||||
pub fn player_input_system(world: &mut World, input_state: &InputState)
|
||||
{
|
||||
let active_camera = world.cameras.get_active();
|
||||
|
||||
if active_camera.is_none()
|
||||
let Some((_, camera)) = world.active_camera()
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
let (_, camera) = active_camera.unwrap();
|
||||
};
|
||||
|
||||
let forward = camera.get_forward_horizontal();
|
||||
let right = camera.get_right_horizontal();
|
||||
|
||||
Reference in New Issue
Block a user