You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a Directional Light with shadows enabled whilst having a Orthographic Camera.
What went wrong
Crash with a unwrap() on None value error at bevy_pbr/src/render/light.rs:1242:18.
Additional information
I was made aware that there is a TODO comment at bevy_pbr/src/light.rs#L417 which does explain why this is caused however this should be properly handled. (Plus I need this to be supported for what I'm working on :))
The text was updated successfully, but these errors were encountered:
…ne#7796)
# Objective
Fixesbevyengine#7797
## Solution
This **seems** like a simple fix, but I'm not 100% confident and I may have messed up the math in some way. In particular, I'm not sure what I should be using for an FOV value.
However, this seems to be producing similar results to 0.9.
Here's the `orthographic` example with a default directional light.
edit: better screen grab below.
Bevy version
main
[Optional] Relevant system information
What you did
Add a Directional Light with shadows enabled whilst having a Orthographic Camera.
What went wrong
Crash with a
unwrap()
onNone
value error atbevy_pbr/src/render/light.rs:1242:18
.Additional information
I was made aware that there is a TODO comment at
bevy_pbr/src/light.rs#L417
which does explain why this is caused however this should be properly handled.(Plus I need this to be supported for what I'm working on :))The text was updated successfully, but these errors were encountered: