From 52c0023a1a0b72a807f4785114ca0e2b6e134355 Mon Sep 17 00:00:00 2001 From: Christopher Biscardi Date: Sun, 5 Apr 2026 00:30:47 -0700 Subject: [PATCH] impl Clone for bevy_light Shader markers --- crates/bevy_light/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_light/src/lib.rs b/crates/bevy_light/src/lib.rs index c5d523f7615f9..40288b846f1be 100644 --- a/crates/bevy_light/src/lib.rs +++ b/crates/bevy_light/src/lib.rs @@ -251,7 +251,7 @@ pub struct NotShadowCaster; /// **Note:** If you're using diffuse transmission, setting [`NotShadowReceiver`] will /// cause both “regular” shadows as well as diffusely transmitted shadows to be disabled, /// even when [`TransmittedShadowReceiver`] is being used. -#[derive(Debug, Component, Reflect, Default)] +#[derive(Debug, Component, Reflect, Default, Clone)] #[reflect(Component, Default, Debug)] pub struct NotShadowReceiver; /// Add this component to make a [`Mesh3d`] using a PBR material with `StandardMaterial::diffuse_transmission > 0.0` @@ -261,7 +261,7 @@ pub struct NotShadowReceiver; /// (and potentially even baking a thickness texture!) to match the geometry of the mesh, in order to avoid self-shadow artifacts. /// /// **Note:** Using [`NotShadowReceiver`] overrides this component. -#[derive(Debug, Component, Reflect, Default)] +#[derive(Debug, Component, Reflect, Default, Clone)] #[reflect(Component, Default, Debug)] pub struct TransmittedShadowReceiver;