bevyengine / bevyengine/bevy

DirectionalLight shadow gets eaten, when another without shadow_enabled is present

Open
#18,876 0 comments 2 reactions 0 assignees View on GitHub
A-Rendering C-Bug S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

0.16.0-rc.1+

## What you did

- spawn a `DirectionalLight` with `shadow_enabled: true`
- spawn a 2nd `DirectionalLight` with `shadow_enabled: false` (even with `illuminance: 0.`)

## What went wrong

Not sure if intended, but the shadow is eaten, in 0.15 it mixed them. 🦆
![Image](https://github.com/user-attachments/assets/60bf7be6-705d-4b0f-8a7e-bf6d659d2e15)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Bevy 0.16.0-rc.1+ using two DirectionalLights, one with shadow_enabled enabled and one disabled, then compare the result with Bevy 0.15. Trace the directional-light shadow and lighting behavior in the rendering subsystem; done means the enabled light's shadow is preserved when the second light has shadows disabled, including when its illuminance is zero.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.