summaryrefslogtreecommitdiff
path: root/engine/src/camera.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/camera.rs')
-rw-r--r--engine/src/camera.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/src/camera.rs b/engine/src/camera.rs
index 46b7293..66150af 100644
--- a/engine/src/camera.rs
+++ b/engine/src/camera.rs
@@ -10,7 +10,6 @@ pub struct Camera
{
pub target: Vec3<f32>,
pub global_up: Vec3<f32>,
- pub current: bool,
pub projection: Projection,
}
@@ -21,8 +20,11 @@ impl Default for Camera
Self {
target: Vec3::default(),
global_up: Vec3::UP,
- current: false,
projection: Projection::Perspective(Perspective::default()),
}
}
}
+
+/// Marker component for cameras that are active.
+#[derive(Debug, Default, Clone, Copy, Component)]
+pub struct Active;