bevy/examples/window
Doonv dc9b486650
Change light defaults & fix light examples (#11581)
# Objective

Fix https://github.com/bevyengine/bevy/issues/11577.

## Solution

Fix the examples, add a few constants to make setting light values
easier, and change the default lighting settings to be more realistic.
(Now designed for an overcast day instead of an indoor environment)

---

I did not include any example-related changes in here.

## Changelogs (not including breaking changes)

### bevy_pbr

- Added `light_consts` module (included in prelude), which contains
common lux and lumen values for lights.
- Added `AmbientLight::NONE` constant, which is an ambient light with a
brightness of 0.
- Added non-EV100 variants for `ExposureSettings`'s EV100 constants,
which allow easier construction of an `ExposureSettings` from a EV100
constant.

## Breaking changes

### bevy_pbr

The several default lighting values were changed:

- `PointLight`'s default `intensity` is now `2000.0`
- `SpotLight`'s default `intensity` is now `2000.0`
- `DirectionalLight`'s default `illuminance` is now
`light_consts::lux::OVERCAST_DAY` (`1000.`)
- `AmbientLight`'s default `brightness` is now `20.0`
2024-02-14 20:43:10 +00:00
..
clear_color.rs Rename Input to ButtonInput (#10859) 2023-12-06 20:32:34 +00:00
low_power.rs Change light defaults & fix light examples (#11581) 2024-02-14 20:43:10 +00:00
multiple_windows.rs Change light defaults & fix light examples (#11581) 2024-02-14 20:43:10 +00:00
scale_factor_override.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
screenshot.rs Change light defaults & fix light examples (#11581) 2024-02-14 20:43:10 +00:00
transparent_window.rs Fix doc link in transparent_window example (#9697) 2023-09-05 05:43:26 +00:00
window_resizing.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
window_settings.rs Add name to bevy:🪟:Window (#7650) 2024-02-05 13:35:35 +00:00