Skip to content

Strange shadow issues #20878

@paholg

Description

@paholg

Bevy version and features

  • Bevy 0.16.1
  • Features:
    • animation
    • bevy_asset
    • bevy_color
    • bevy_core_pipeline
    • bevy_gilrs
    • bevy_gizmos
    • bevy_gltf
    • bevy_mesh_picking_backend
    • bevy_pbr
    • bevy_picking
    • bevy_render
    • bevy_scene
    • bevy_state
    • bevy_text
    • bevy_ui
    • bevy_ui_picking_backend
    • bevy_window
    • bevy_winit
    • custom_cursor
    • default_font
    • hdr
    • multi_threaded
    • png
    • smaa_luts
    • sysinfo_plugin
    • tonemapping_luts
    • webgl2
    • x11

Relevant system information

  • cargo 1.89.0 (c24e10642 2025-06-23)
  • Linux, NixOS 25.11 (Xantusia) x86_64, Wayland
`AdapterInfo { name: "AMD Radeon RX 7900 XTX (RADV NAVI31)", vendor: 4098, device: 29772, device_type: DiscreteGpu, driver: "radv", driver_info: "Mesa 25.2.1", backend: Vulkan }`

What you did

Updating to Bevy 0.16 has caused many weird defects around shadows. I've seen a few other issues around this, but none that are quite the same.

What went wrong

I have tried to create a minimal, reproducible example, but sadly have failed. All the examples I have tried work fine, and I've not easily been able to strip away enough of my program to be considered minimal, but I can go further down this path if it would be helpful. You can also view my full project here (run with cargo run --bin client).

In this image, you can see a very large shadow under the laser sight, which has both NotShadowCaster and NotShadowReceiver. This shadow is not always present:
Image

In this image, you can see the previous shadow is gone, but there's a similar shadow for the dot, which also has NotShadowCaster and NotShadowReceiver. There are also some shadow defects on the floor, to the left of it:
Image

In this video, you can see the above, and also the flickering:

shadows.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-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