From d89c554388bfa6e325f03c53bc4bf2129a7df9b0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 22 May 2024 20:18:11 +0200 Subject: refactor: rename LightSource to PointLight --- engine/src/lighting.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/src/lighting.rs') 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, pub specular: Color, } -impl Default for LightSource +impl Default for PointLight { fn default() -> Self { -- cgit v1.2.3-18-g5258