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;