AmbientLight

AmbientLight

  • color : bevy_color::color::Color
  • brightness : f32

Description

An ambient light, which lights the entire scene equally.

This resource is inserted by the [PbrPlugin] and by default it is set to a low ambient light.

Examples

Make ambient light slightly brighter:

# use bevy_ecs::system::ResMut;
# use bevy_pbr::AmbientLight;
fn setup_ambient_light(mut ambient_light: ResMut<AmbientLight>) {
   ambient_light.brightness = 100.0;
}

Functions