Added rules

This commit is contained in:
Sch1nken 2024-04-20 01:26:11 +02:00
parent b42b1ae39f
commit 0385858d4f
10 changed files with 423 additions and 85 deletions

20
WorldEnvSettings.gd Normal file
View file

@ -0,0 +1,20 @@
extends WorldEnvironment
# Called when the node enters the scene tree for the first time.
func _ready():
GameSettings.dof_blur_changed.connect(_on_dof_blur_changed)
var ca: CameraAttributes = camera_attributes
ca.dof_blur_far_enabled = GameSettings.dof_blur_enabled
ca.dof_blur_near_enabled = GameSettings.dof_blur_enabled
func _on_dof_blur_changed(enabled: bool) -> void:
var ca: CameraAttributes = camera_attributes
ca.dof_blur_far_enabled = enabled
ca.dof_blur_near_enabled = enabled
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass