remove fog

This commit is contained in:
Joe Ardent 2023-03-31 15:28:32 -07:00
parent 27ba017609
commit a5d31d68d6
1 changed files with 0 additions and 16 deletions

View File

@ -44,31 +44,15 @@ fn setup_cybercams(mut commands: Commands) {
..Default::default() ..Default::default()
}; };
let fog_settings = FogSettings {
color: Color::rgba(0.1, 0.2, 0.4, 1.0),
directional_light_color: Color::rgba(1.0, 0.95, 0.75, 0.5),
directional_light_exponent: 30.0,
falloff: FogFalloff::from_visibility_colors(
350.0, /* distance in world units up to which objects retain visibility (>= 5%
* contrast) */
Color::rgb(0.35, 0.5, 0.66), /* atmospheric extinction color (after light is lost
* due to absorption by atmospheric particles) */
Color::rgb(0.8, 0.844, 1.0), /* atmospheric inscattering color (light gained due to
* scattering from the sun) */
),
};
commands commands
.spawn(Camera3dBundle { .spawn(Camera3dBundle {
projection: bevy::render::camera::Projection::Perspective(hero_projection), projection: bevy::render::camera::Projection::Perspective(hero_projection),
..Default::default() ..Default::default()
}) })
.insert(fog_settings.clone())
.insert(CyberCameras::Hero); .insert(CyberCameras::Hero);
commands commands
.spawn(Camera3dBundle::default()) .spawn(Camera3dBundle::default())
.insert(fog_settings)
.insert(CyberCameras::Debug); .insert(CyberCameras::Debug);
} }