mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Make the many_foxes plane smaller to fix shadow issues. (#7339)
# Objective Shadows are broken on many_foxes on AMD GPUs. This seems to be due to rounding or floating point precision issues combined with the absolute unit of a plane that it's currently using. Related: https://github.com/bevyengine/bevy/issues/6542 I'm not sure if we want to close that issue, as there's still the underlying issue of shadows breaking on overly large planes. ## Solution Make the plane smaller.
This commit is contained in:
parent
02978053cd
commit
a3baf2ae86
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ fn setup(
|
|||
|
||||
// Plane
|
||||
commands.spawn(PbrBundle {
|
||||
mesh: meshes.add(Mesh::from(shape::Plane { size: 500000.0 })),
|
||||
mesh: meshes.add(Mesh::from(shape::Plane { size: 5000.0 })),
|
||||
material: materials.add(Color::rgb(0.3, 0.5, 0.3).into()),
|
||||
..default()
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue