diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-22 20:18:11 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-22 20:18:11 +0200 |
commit | d89c554388bfa6e325f03c53bc4bf2129a7df9b0 (patch) | |
tree | fb02381e3ceb35dd1f4d65c8872848ee338f7104 /engine/src/lighting.rs | |
parent | 0f53ae83a4d8da002850859fe0d010c5df4f2f57 (diff) |
refactor: rename LightSource to PointLight
Diffstat (limited to 'engine/src/lighting.rs')
-rw-r--r-- | engine/src/lighting.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/lighting.rs b/engine/src/lighting.rs index f41437a..e79c1bc 100644 --- a/engine/src/lighting.rs +++ b/engine/src/lighting.rs @@ -4,13 +4,13 @@ use crate::color::Color; use crate::util::builder; #[derive(Debug, Clone, Component)] -pub struct LightSource +pub struct PointLight { pub diffuse: Color<f32>, pub specular: Color<f32>, } -impl Default for LightSource +impl Default for PointLight { fn default() -> Self { |