# Objective Transparently uses simple `EnvironmentMapLight`s to mimic `AmbientLight`s. Implements the first part of #17468, but I can implement hemispherical lights in this PR too if needed. ## Solution - A function `EnvironmentMapLight::solid_color(&mut Assets<Image>, Color)` is provided to make an environment light with a solid color. - A new system is added to `SimulationLightSystems` that maps `AmbientLight`s on views or the world to a corresponding `EnvironmentMapLight`. I have never worked with (or on) Bevy before, so nitpicky comments on how I did things are appreciated :). ## Testing Testing was done on a modified version of the `3d/lighting` example, where I removed all lights except the ambient light. I have not included the example, but can if required. ## Migration `bevy_pbr::AmbientLight` has been deprecated, so all usages of it should be replaced by a `bevy_pbr::EnvironmentMapLight` created with `EnvironmentMapLight::solid_color` placed on the camera. There is no alternative to ambient lights as resources. |
||
|---|---|---|
| .. | ||
| files | ||
| processing | ||
| alter_mesh.rs | ||
| alter_sprite.rs | ||
| asset_decompression.rs | ||
| asset_loading.rs | ||
| asset_settings.rs | ||
| custom_asset_reader.rs | ||
| custom_asset.rs | ||
| embedded_asset.rs | ||
| extra_source.rs | ||
| hot_asset_reloading.rs | ||
| multi_asset_sync.rs | ||
| repeated_texture.rs | ||