diff options
| author | HampusM <hampus@hampusmat.com> | 2024-04-21 16:03:47 +0200 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2024-04-21 16:03:47 +0200 | 
| commit | ad67712586cfcfe5236efda93b9e15aefdc9fcf5 (patch) | |
| tree | e8395fd4e98cbfcebc6248f0a2b7d1ba68e49838 /engine/src/lighting.rs | |
| parent | 4ce4a04992c076ece78f55837764d055429a7197 (diff) | |
refactor(engine): remove LightSource position field
Diffstat (limited to 'engine/src/lighting.rs')
| -rw-r--r-- | engine/src/lighting.rs | 3 | 
1 files changed, 0 insertions, 3 deletions
diff --git a/engine/src/lighting.rs b/engine/src/lighting.rs index c5369db..e0608ef 100644 --- a/engine/src/lighting.rs +++ b/engine/src/lighting.rs @@ -1,12 +1,10 @@  use ecs::Component;  use crate::color::Color; -use crate::vector::Vec3;  #[derive(Debug, Clone, Component)]  pub struct LightSource  { -    pub position: Vec3<f32>,      pub ambient: Color<f32>,      pub diffuse: Color<f32>,      pub specular: Color<f32>, @@ -17,7 +15,6 @@ impl Default for LightSource      fn default() -> Self      {          Self { -            position: Vec3::default(),              ambient: Color { red: 0.2, green: 0.2, blue: 0.2 },              diffuse: Color { red: 0.5, green: 0.5, blue: 0.5 },              specular: Color { red: 1.0, green: 1.0, blue: 1.0 },  | 
