ajout d'une animation de recharge et réparation du crash au chargement de chunk

This commit is contained in:
2026-01-16 12:28:36 +01:00
parent 74d2d0de3a
commit ff4feacea3
25 changed files with 431 additions and 236 deletions

View File

@@ -0,0 +1,21 @@
@tool
extends ColorRect
class_name PassDayBackground
@export var blur_strength := 0. :
set(v):
blur_strength = v
if is_node_ready():
update_shader_material_parameter()
@export var blur_mix_percentage := 0. :
set(v):
blur_mix_percentage = v
if is_node_ready():
update_shader_material_parameter()
func _ready():
update_shader_material_parameter()
func update_shader_material_parameter():
material.set_shader_parameter("strength", blur_strength)
material.set_shader_parameter("mix_percentage", blur_mix_percentage)