diff options
| author | HampusM <hampus@hampusmat.com> | 2026-07-17 01:23:25 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-07-17 01:23:25 +0200 |
| commit | 7b25df4c4dc3ead44dc02015fcc46c1ccb283b8e (patch) | |
| tree | 4ff162b57ce32e1444851ba685c3e5ac6093c03b /engine/src/lighting.rs | |
| parent | e32c20e5d9693bc0ac5b3e371823a4de978cb4e6 (diff) | |
feat(engine): add Reflection derives to various types
Diffstat (limited to 'engine/src/lighting.rs')
| -rw-r--r-- | engine/src/lighting.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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 { |
