From a5d31d68d6d5885a0b91443eb74911c706275130 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Fri, 31 Mar 2023 15:28:32 -0700 Subject: [PATCH] remove fog --- src/camera.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/camera.rs b/src/camera.rs index 1e23e2d..5b37727 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -44,31 +44,15 @@ fn setup_cybercams(mut commands: Commands) { ..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 .spawn(Camera3dBundle { projection: bevy::render::camera::Projection::Perspective(hero_projection), ..Default::default() }) - .insert(fog_settings.clone()) .insert(CyberCameras::Hero); commands .spawn(Camera3dBundle::default()) - .insert(fog_settings) .insert(CyberCameras::Debug); }