From ad67712586cfcfe5236efda93b9e15aefdc9fcf5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 21 Apr 2024 16:03:47 +0200 Subject: refactor(engine): remove LightSource position field --- engine/src/lighting.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'engine/src/lighting.rs') 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, pub ambient: Color, pub diffuse: Color, pub specular: Color, @@ -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 }, -- cgit v1.2.3-18-g5258