Skip to content

Commit

Permalink
add Clone, Copy to NotShadow*
Browse files Browse the repository at this point in the history
  • Loading branch information
HackerFoo committed Aug 10, 2022
1 parent 1886f45 commit 31622dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_pbr/src/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ impl Default for AmbientLight {
}

/// Add this component to make a [`Mesh`](bevy_render::mesh::Mesh) not cast shadows.
#[derive(Component, Reflect, Default)]
#[derive(Component, Reflect, Default, Clone, Copy)]
#[reflect(Component, Default)]
pub struct NotShadowCaster;
/// Add this component to make a [`Mesh`](bevy_render::mesh::Mesh) not receive shadows.
#[derive(Component, Reflect, Default)]
#[derive(Component, Reflect, Default, Clone, Copy)]
#[reflect(Component, Default)]
pub struct NotShadowReceiver;

Expand Down

0 comments on commit 31622dc

Please sign in to comment.