diff --git a/src/game.rs b/src/game.rs index 1e540a0..d7e6e6a 100644 --- a/src/game.rs +++ b/src/game.rs @@ -21,10 +21,12 @@ pub fn run() { let display = init_display(&event_loop); log::info!("compiling shaders"); let programs = Programs::compile_all(&display); - log::info!("init camera"); - let camera = Camera::default(); log::info!("loading assets"); let assets = Assets::load_all_sync(&display); + log::info!("init camera"); + let mut camera = Camera::default(); + camera.position = [0., 0., -1.]; + camera.direction = [0., 0., 1.]; log::info!("game loaded"); //=======================