|
|
|
@ -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
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|