Skip to content

Toggling shadow caster/receiver doesn't work in the example #21582

@yzsolt

Description

@yzsolt

Bevy version and features

  • v0.17.2 and master

Relevant system information

SystemInfo { os: "macOS 26.0.1", kernel: "25.0.0", cpu: "Apple M1 Max", core_count: "10", memory: "32.0 GiB" }
AdapterInfo { name: "Apple M1 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }

What you did

Played with the shadow_caster_receiver 3D example. Hit L to switch between directional/point lights and hit C/R to toggle shadow casters/receivers.

What went wrong

Tried to toggle shadow casters/receivers using C/R keys. First C or R hit hides all shadows, and subsequent hits don't bring back any shadows. Probably the NotShadowCaster/NotShadowReceiver components (more specifically, their removal) are not tracked properly internally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-BugAn unexpected or incorrect behaviorS-Needs-TriageThis issue needs to be labelled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions