Reduce fog and suppress weather indoors

This commit is contained in:
Alexander Sellite 2026-09-01 17:30:18 -04:00
parent 6029eb29b8
commit 134ece4a10
6 changed files with 105 additions and 10 deletions

View file

@ -39,6 +39,16 @@ func _run() -> void:
func _validate_weather_scheduler() -> void:
assert(JobCatalog.FOGGY_WEATHER_WEIGHT < JobCatalog.SUNNY_WEATHER_WEIGHT)
assert(JobCatalog.FOGGY_WEATHER_WEIGHT < JobCatalog.CLOUDY_WEATHER_WEIGHT)
assert(JobCatalog.FOGGY_WEATHER_WEIGHT < JobCatalog.RAINY_WEATHER_WEIGHT)
assert(is_equal_approx(
JobCatalog.SUNNY_WEATHER_WEIGHT
+ JobCatalog.CLOUDY_WEATHER_WEIGHT
+ JobCatalog.RAINY_WEATHER_WEIGHT
+ JobCatalog.FOGGY_WEATHER_WEIGHT,
1.0,
))
var weather := WorldWeatherServiceType.new()
root.add_child(weather)
weather.begin_authoritative_session(20260802)
@ -526,6 +536,18 @@ func _validate_weather_presentation() -> void:
assert(rain.emitting)
assert(rain.amount_ratio > 0.99)
assert(rain.amount == WorldTimeVisualControllerType.RAIN_PARTICLE_AMOUNT)
visuals.set_local_home_interior_active(true)
assert(not rain.visible)
assert(not rain.emitting)
assert(is_zero_approx(rain.amount_ratio))
assert(not runtime_environment.fog_enabled)
assert(not storm_clouds.visible)
assert(is_zero_approx(float(storm_clouds.call("get_storm_amount"))))
visuals.set_local_home_interior_active(false)
assert(rain.visible)
assert(rain.emitting)
assert(rain.amount_ratio > 0.99)
assert(storm_clouds.visible)
var rain_emitter_offset: Vector3 = (
WorldTimeVisualControllerType.RAIN_EMITTER_OFFSET
)