|
|
|
|
@ -1391,13 +1391,15 @@ fn dissolve_animation(
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn fixup_shadows(
|
|
|
|
|
mut spot_lights: Query<&mut SpotLight>,
|
|
|
|
|
mut spot_lights: Query<(&mut SpotLight, &Name)>,
|
|
|
|
|
mut point_lights: Query<&mut PointLight>,
|
|
|
|
|
mut directional_lights: Query<&mut DirectionalLight>,
|
|
|
|
|
) {
|
|
|
|
|
info!("Fixing up shadows");
|
|
|
|
|
spot_lights.iter_mut().for_each(|mut l| {
|
|
|
|
|
l.shadows_enabled = true;
|
|
|
|
|
spot_lights.iter_mut().for_each(|(mut l, n)| {
|
|
|
|
|
if n.as_str().starts_with("Spot") {
|
|
|
|
|
l.shadows_enabled = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
point_lights.iter_mut().for_each(|mut l| {
|
|
|
|
|
l.shadows_enabled = true;
|
|
|
|
|
|