fix: youth room dof blur
This commit is contained in:
parent
525926086b
commit
27d0019639
|
|
@ -9,6 +9,7 @@ func _ready():
|
||||||
|
|
||||||
func focus_env():
|
func focus_env():
|
||||||
if dof_strength_tween: dof_strength_tween.kill()
|
if dof_strength_tween: dof_strength_tween.kill()
|
||||||
|
dof_strength_tween = create_tween()
|
||||||
dof_strength_tween.tween_property(camera_attributes, "dof_blur_amount", 0, 1)
|
dof_strength_tween.tween_property(camera_attributes, "dof_blur_amount", 0, 1)
|
||||||
await(dof_strength_tween.finished)
|
await(dof_strength_tween.finished)
|
||||||
camera_attributes.dof_blur_near_enabled = false
|
camera_attributes.dof_blur_near_enabled = false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue