diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-19 18:21:53 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-19 21:39:59 +0200 |
commit | 5ce6133e120bd5e3d7490db1872bc8b667a0fb4f (patch) | |
tree | deb418997d515a9762170c0d5f8c8896ecce1210 /engine/src/lighting.rs | |
parent | 2ab8ca293f9548238b22d96d4fd88ec93d6b2431 (diff) |
fix(engine): use ambient light from GlobalLight
Diffstat (limited to 'engine/src/lighting.rs')
-rw-r--r-- | engine/src/lighting.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engine/src/lighting.rs b/engine/src/lighting.rs index d08276e..f41437a 100644 --- a/engine/src/lighting.rs +++ b/engine/src/lighting.rs @@ -6,7 +6,6 @@ use crate::util::builder; #[derive(Debug, Clone, Component)] pub struct LightSource { - pub ambient: Color<f32>, pub diffuse: Color<f32>, pub specular: Color<f32>, } @@ -16,7 +15,6 @@ impl Default for LightSource fn default() -> Self { Self { - 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 }, } @@ -30,7 +28,7 @@ builder! { #[non_exhaustive] pub struct GlobalLight { - pub ambient_offset: Color<f32>, + pub ambient: Color<f32>, } } |