From 3dc8ced5d27423126a8b684fd44e8b9d1071750f Mon Sep 17 00:00:00 2001 From: Voyager Date: Mon, 3 Aug 2026 17:15:56 -0400 Subject: [PATCH] Align fog presentation validation --- tests/world_weather_validation.gd | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/world_weather_validation.gd b/tests/world_weather_validation.gd index a5838f8..1035a09 100644 --- a/tests/world_weather_validation.gd +++ b/tests/world_weather_validation.gd @@ -217,15 +217,19 @@ func _validate_weather_presentation() -> void: visuals.setup( clock, world_environment, sun, weather, rain_target ) + var runtime_environment: Environment = world_environment.environment + var clear_saturation: float = runtime_environment.adjustment_saturation visuals.apply_weather_immediately( WorldWeatherServiceType.Weather.FOGGY ) - var runtime_environment: Environment = world_environment.environment assert(runtime_environment.fog_depth_begin <= 4.01) assert(runtime_environment.fog_depth_end <= 42.01) - assert(runtime_environment.fog_sky_affect >= 0.93) + assert(is_zero_approx(runtime_environment.fog_sky_affect)) assert(runtime_environment.fog_aerial_perspective >= 0.91) - assert(runtime_environment.adjustment_saturation < 0.70) + assert(is_equal_approx( + runtime_environment.adjustment_saturation, + clear_saturation, + )) visuals.apply_weather_immediately( WorldWeatherServiceType.Weather.RAINY )