just getting this weird Flickering effect, it only seems to happen when the lighting is enabled which is as follows, i just yoinked it from one of the examples.
fn setup_lighting(
mut commands: Commands
) {
commands.spawn ((
DirectionalLight {
illuminance: light_consts::lux::OVERCAST_DAY,
shadows_enabled: true,
..default()
},
Transform {
translation: Vec3::new(0.0, 50.0, 0.0),
rotation: Quat::from_rotation_x(-PI / 4.0),
..default()
},
CascadeShadowConfigBuilder {
first_cascade_far_bound: 4.0,
maximum_distance: 10.0,
..default()
}
.build(),
));
}```
Thanks!