Skip to content

Directional light shadows disappear when camera is rotated #8645

@GitGhillie

Description

@GitGhillie

Bevy version

0.10.1,
main (f76b3c4)

Relevant system information

  • SteamOS 3.4.6
    AdapterInfo { name: "AMD Custom GPU 0405 (RADV VANGOGH)", vendor: 4098, device: 5695, device_type: IntegratedGpu, driver: "radv", driver_info: "Mesa 22.2.5", backend: Vulkan }

What you did

  • Spawn two horizontal planes above each other
  • Spawn directional light and a camera between the planes
  • Rotate camera

See somewhat minimal example here.

What went wrong

Depending on the distance and angle of the camera some shadows partially disappear. As seen here it can quickly ruin a scene.

In the example code I gave only rectangular shadows should be possible but when you spawn in it looks like this:
bevy_shadow
Move around the camera with the mouse and you will see the shadow change shape.

Additional information

Same issue on my Windows 10 desktop (tested with Bevy 0.10.1) but I'm currently abroad so I cannot check the exact AdapterInfo. It has an AMD Vega 56 gpu and uses the Vulkan backend as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions