From 101b455e51f9b702da5517cabe2c3b1086fcb2e7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 14 Apr 2024 12:34:52 +0200 Subject: feat(engine): use ECS architecture --- engine/src/lighting.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/src/lighting.rs') 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, -- cgit v1.2.3-18-g5258