From d1f6470cc23d253c7c3257e0025d2df0bca579f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lom=C3=ADrus?= Date: Tue, 27 May 2025 01:52:27 +0800 Subject: [PATCH] Fix mismatched FogFalloff (#19174) # Objective When user presses 3, the falloff mode should be changed to `ExponentialSquared` as described in the instructions, but it's not in fact. Online Example: https://bevyengine.org/examples-webgpu/3d-rendering/fog/ ## Solution Change it to `ExponentialSquared` ## Testing - Did you test these changes? If so, how? Yes, by `cargo run --example fog` - Are there any parts that need more testing? No. - How can other people (reviewers) test your changes? Is there anything specific they need to know? ``` cargo run --example fog ``` - If relevant, what platforms did you test these changes on, and are there any important ones you can't test? N/A --- examples/3d/fog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/3d/fog.rs b/examples/3d/fog.rs index 9793ae0ad3..cbb8c0fa3b 100644 --- a/examples/3d/fog.rs +++ b/examples/3d/fog.rs @@ -180,7 +180,7 @@ fn update_system( } else if let FogFalloff::ExponentialSquared { .. } = fog.falloff { // No change } else { - fog.falloff = FogFalloff::Exponential { density: 0.07 }; + fog.falloff = FogFalloff::ExponentialSquared { density: 0.07 }; }; }