From 7b25df4c4dc3ead44dc02015fcc46c1ccb283b8e Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 17 Jul 2026 01:23:25 +0200 Subject: feat(engine): add Reflection derives to various types --- engine/src/lighting.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engine/src/lighting.rs') diff --git a/engine/src/lighting.rs b/engine/src/lighting.rs index 2a07541..f085b17 100644 --- a/engine/src/lighting.rs +++ b/engine/src/lighting.rs @@ -2,10 +2,11 @@ use crate::builder; use crate::color::Color; use crate::data_types::vector::Vec3; use crate::ecs::{Component, Sole}; +use crate::reflection::Reflection; builder! { #[builder(name = PointLightBuilder, derives = (Debug, Clone))] -#[derive(Debug, Clone, Component)] +#[derive(Debug, Clone, Component, Reflection)] #[non_exhaustive] pub struct PointLight { @@ -48,7 +49,7 @@ impl Default for PointLightBuilder } /// Parameters for light [attenuation](https://en.wikipedia.org/wiki/Attenuation). -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Reflection)] pub struct AttenuationParams { pub constant: f32, @@ -70,7 +71,7 @@ impl Default for AttenuationParams builder! { #[builder(name = DirectionalLightBuilder, derives = (Debug, Default, Clone))] -#[derive(Debug, Default, Clone, Component)] +#[derive(Debug, Default, Clone, Component, Reflection)] #[non_exhaustive] pub struct DirectionalLight { -- cgit v1.2.3-18-g5258