diff options
author | HampusM <hampus@hampusmat.com> | 2024-04-14 12:34:52 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-04-14 12:35:28 +0200 |
commit | 101b455e51f9b702da5517cabe2c3b1086fcb2e7 (patch) | |
tree | 470e28acd7a3777dbb4be0208f9cd3177bba52a9 /engine/src/lighting.rs | |
parent | ef7b76ff39d501028852835649f618fcbe17a003 (diff) |
feat(engine): use ECS architecture
Diffstat (limited to 'engine/src/lighting.rs')
-rw-r--r-- | engine/src/lighting.rs | 4 |
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>, |