mirror of
https://github.com/bevyengine/bevy.git
synced 2026-06-29 23:35:35 -04:00
7496e1b639
In the atmosphere example we can change between Earth and Mars, but the size of the sun does not change. This somewhat bothered me from an astronomical accuarcy. This commit introduces a new `SunDisk::MARS` constant to accurately represent the sun’s apparent size when viewed from Mars. The implementation updates the documentation and adds the corresponding constant with an angular size of ~21 arcminutes (0.00615 radians). Key modifications: - Added `SunDisk::MARS` constant in `directional_light.rs` - Updated documentation to reference the new Mars preset - Modified `atmosphere` example to switch sun disk alongside atmosphere presets I tested this manually. --------- Co-authored-by: Máté Homolya <mate.homolya@gmail.com> Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>