Boat/Ocean/WeatherManager.gd

25 lines
503 B
GDScript3
Raw Normal View History

2025-07-03 13:37:35 +00:00
@tool
@icon("uid://dsorlwsjw10wl")
extends Node
class_name WeatherManager
2025-07-03 13:37:35 +00:00
@export var OceanRef : Ocean
var OceanShader:ShaderMaterial
@export var weather_preset:WeatherPreset:
set(new_preset):
weather_preset = new_preset
change_weather()
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
2025-07-03 13:37:35 +00:00
if !OceanRef:
print("Error:No Ocean ref !")
queue_free()
return
OceanShader = OceanRef.OceanShader
2025-07-03 13:37:35 +00:00
func change_weather():
# Set OceanShader parameters
pass