Add height fog to bevy_city#23776
Conversation
|
Can you say a bit more about why we should do this? I think it looks nice, but I want to understand how this fits into the bigger vision for this. |
|
Good question let me add a bit more context. Initially the question came up when I was gathering some feedback from a crate author in the bevy ecosystem. They created a create called https://docs.rs/crate/bevy_exponential_height_fog. |
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
alice-i-cecile
left a comment
There was a problem hiding this comment.
Much improved! Thanks.
| // Koschmieder relation to calculate the extinction coefficient for the medium in m^-1 units. | ||
| let beta_ext = (3.912 / HAZE_VISIBILITY_KM) * 1e-3; |
There was a problem hiding this comment.
Could be nice to link to further reading here but not blocking.
Co-authored-by: Emerson Coskey <emerson@coskey.dev>
# Objective - Add height fog to bevy_city ## Solution - update the bevy_city package <img width="1915" height="1098" alt="Screenshot 2026-04-12 at 1 49 22 PM" src="https://github.com/user-attachments/assets/61127e59-cab8-4e2e-b9c3-b32edbef6c03" /> <img width="1919" height="1113" alt="Screenshot 2026-04-12 at 1 48 56 PM" src="https://github.com/user-attachments/assets/dd08fd00-988e-4a00-a670-1e425e5633dc" /> --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Emerson Coskey <emerson@coskey.dev>
Objective
Solution