summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index a93efa1..d47bcb2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,7 +3,7 @@ use std::fs::read_to_string;
use std::path::Path;
use engine::camera::fly::{Extension as FlyCameraExtension, Options as FlyCameraOptions};
-use engine::camera::Camera;
+use engine::camera::{Active as ActiveCamera, Camera};
use engine::color::Color;
use engine::data_types::dimens::Dimens;
use engine::ecs::sole::Single;
@@ -90,10 +90,11 @@ fn main() -> Result<(), Box<dyn Error>>
));
engine.spawn((
- Camera { current: true, ..Default::default() },
+ Camera::default(),
Position {
position: Vec3 { x: 0.0, y: 0.0, z: 3.0 },
},
+ ActiveCamera,
));
engine.add_sole(GlobalLight::default())?;