From a3baf2ae869611a84cf1bc062c498ea08128cbd9 Mon Sep 17 00:00:00 2001 From: Elabajaba Date: Mon, 23 Jan 2023 15:42:08 +0000 Subject: [PATCH] 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. --- examples/stress_tests/many_foxes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/stress_tests/many_foxes.rs b/examples/stress_tests/many_foxes.rs index d01a2df437636..f4d2f631e2170 100644 --- a/examples/stress_tests/many_foxes.rs +++ b/examples/stress_tests/many_foxes.rs @@ -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() });