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 committed Jan 23, 2023
1 parent 0297805 commit a3baf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/stress_tests/many_foxes.rs
Original file line number Diff line number Diff line change
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 a3baf2a

Please sign in to comment.