fix clouds

This commit is contained in:
Overside srl
2026-02-17 16:00:53 +01:00
parent f7ec818c23
commit c7d2ae14b3
16 changed files with 36 additions and 51 deletions

View File

@@ -40,6 +40,9 @@ var _debug_canvas_layer: CanvasLayer
func _ready() -> void:
if show_debug_panel && _debug_panel == null:
_create_debug_panel()
if auto_create_controllers:
_ensure_controllers_exist()
@@ -300,22 +303,16 @@ func _sync_post_process() -> void:
_current_config.sun_glow_intensity,
_current_config.sun_glow_size
)
post_process_controller.set_fog_settings(
_current_config.fog_color,
_current_config.fog_density
)
post_process_controller.set_dawn_dusk_blend(0.0)
post_process_controller.set_stars_visibility(
_current_config.stars_visibility,
_current_config.stars_tint
)
post_process_controller.set_sky_colors(
_current_config.sky_top_color,
_current_config.sky_horizon_color,
_current_config.sky_bottom_color
)
post_process_controller.gradient_intensity = _current_config.gradient_intensity
post_process_controller.apply_config(_current_config)
post_process_controller.set_dawn_dusk_blend(0.0)
var cfg_fog_color := day_night_controller.get_fog_color()
var cfg_fog_density := day_night_controller.get_fog_density()
if weather_controller:
var wp := weather_controller.get_current_profile()
if wp:
cfg_fog_color *= wp.fog_color_multiplier
cfg_fog_density *= wp.fog_density_multiplier
post_process_controller.set_fog_settings(cfg_fog_color, cfg_fog_density)
else:
var sun_color := day_night_controller.get_sun_color()
post_process_controller.set_sun_glow(
@@ -464,8 +461,6 @@ func _sync_weather_vfx() -> void:
func _update_debug_info() -> void:
if Engine.is_editor_hint():
return
if _debug_panel == null:
_create_debug_panel()
_debug_panel.visible = true
@@ -494,7 +489,6 @@ func set_time_of_day(time: float) -> void:
func set_weather(state: WeatherProfile.WeatherState, transition_time: float = -1.0) -> void:
_current_config = null
if weather_controller:
weather_controller.set_weather(state, transition_time)