Skip to content

Commit a3baf2a

Browse files
committed
Make the many_foxes plane smaller to fix shadow issues. (bevyengine#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: 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.
1 parent 0297805 commit a3baf2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/stress_tests/many_foxes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn setup(
160160

161161
// Plane
162162
commands.spawn(PbrBundle {
163-
mesh: meshes.add(Mesh::from(shape::Plane { size: 500000.0 })),
163+
mesh: meshes.add(Mesh::from(shape::Plane { size: 5000.0 })),
164164
material: materials.add(Color::rgb(0.3, 0.5, 0.3).into()),
165165
..default()
166166
});

0 commit comments

Comments
 (0)