fix shaders

This commit is contained in:
2026-04-23 15:07:04 +02:00
parent 174ae98242
commit 8b2cbab23b
18 changed files with 255 additions and 171 deletions

View File

@@ -98,6 +98,14 @@ func ApplyWeatherShaderToMaterials():
if child is GeometryInstance3D:
child.material_overlay = weather_shader
for node in get_tree().get_nodes_in_group("weather_vegetables_node"):
if node is GeometryInstance3D:
node.material_overlay = weather_shader
else:
for child in node.get_children():
if child is GeometryInstance3D:
child.material_overlay = weather_shader
func select_day_time(normalized_time: float) -> void:
#set show_day_time_debug = true to show debug on screen
#normalized_time is a value between 0 and 1; the time of the day is calculate as "normalized_time" * 1440; day_time is the step to pass from sunrise, to day, to sunset, to night