summaryrefslogtreecommitdiff
path: root/engine/src/lighting.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/lighting.rs')
-rw-r--r--engine/src/lighting.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/src/lighting.rs b/engine/src/lighting.rs
index 20f89c3..e285739 100644
--- a/engine/src/lighting.rs
+++ b/engine/src/lighting.rs
@@ -1,7 +1,9 @@
+use ecs::Component;
+
use crate::color::Color;
use crate::vector::Vec3;
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, Component)]
pub struct LightSource
{
position: Vec3<f32>,