Skip to content

Commit

Permalink
Make the many_foxes plane smaller to fix shadow issues. (bevyengine#7339
Browse files Browse the repository at this point in the history
)

# 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: bevyengine#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.
  • Loading branch information
Elabajaba authored and ItsDoot committed Feb 1, 2023
1 parent 8efea1b commit 0174dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/stress_tests/many_foxes.rs
Expand Up @@ -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()
});
Expand Down

0 comments on commit 0174dd3

Please sign in to comment.