Still not sure how to get rid of fog at startup...

main
Elijah C. Voigt 2 years ago
parent bd303af745
commit 8e2d4ab7af

@ -334,16 +334,9 @@ fn update_tweaks(
>, >,
tweaks_file: Res<tweak::GameTweaks>, tweaks_file: Res<tweak::GameTweaks>,
tweaks: Res<Assets<Tweaks>>, tweaks: Res<Assets<Tweaks>>,
// mut lights: Query<
// (
// Option<&mut SpotLight>,
// Option<&mut PointLight>,
// Option<&mut DirectionalLight>,
// ),
// Or<(With<SpotLight>, With<PointLight>, With<DirectionalLight>)>,
// >,
mut commands: Commands, mut commands: Commands,
) { ) {
warn!("Updating tweaks!");
if let Some(tweak) = tweaks.get(tweaks_file.handle.clone()) { if let Some(tweak) = tweaks.get(tweaks_file.handle.clone()) {
camera_settings.iter_mut().for_each( camera_settings.iter_mut().for_each(
|(entity, mut fog, mut color_grading, mut tonemapping, mut bloom)| { |(entity, mut fog, mut color_grading, mut tonemapping, mut bloom)| {
@ -386,11 +379,6 @@ fn update_tweaks(
} }
}, },
); );
// lights
// .iter_mut()
// .for_each(|(mut spot, mut point, mut direction)| {
// // Depending on the light, set the scalar tweak
// });
} }
} }

@ -246,8 +246,8 @@ impl Board {
inner: vec![ inner: vec![
vec![ vec![
Some(Queen), Some(Queen),
None, // Some(Queen), Some(Queen),
None, // Some(Drone), Some(Drone),
None, None,
None, None,
None, None,
@ -255,20 +255,24 @@ impl Board {
None, None,
], ],
vec![ vec![
None, // Some(Queen), Some(Queen),
None, // Some(Drone), Some(Drone),
None, // Some(Pawn), Some(Pawn),
None, None, None, // Some(Pawn), None,
None, // Some(Pawn), None,
None, // Some(Drone), Some(Pawn),
Some(Pawn),
Some(Drone),
], ],
vec![ vec![
None, // Some(Drone), Some(Drone),
None, // Some(Pawn), Some(Pawn),
None, // Some(Pawn), Some(Pawn),
None, None, None, // Some(Pawn), None,
None, // Some(Drone), None,
None, // Some(Queen), Some(Pawn),
Some(Drone),
Some(Queen),
], ],
vec![ vec![
None, None,
@ -276,8 +280,8 @@ impl Board {
None, None,
None, None,
None, None,
None, // Some(Drone), Some(Drone),
None, // Some(Queen), Some(Queen),
Some(Queen), Some(Queen),
], ],
], ],

Loading…
Cancel
Save