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

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorC-ExamplesAn addition or correction to our examplesD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions