added a toggle option for motion blur

This commit is contained in:
sphynx-owner 2024-07-07 12:31:59 +03:00
commit 8861675341
3 changed files with 13 additions and 4 deletions

View file

@ -55,6 +55,9 @@ func _input(event: InputEvent) -> void:
if Input.is_action_just_pressed("freeze"):
motion_blur_effect.freeze = !motion_blur_effect.freeze
if Input.is_action_just_pressed("T"):
motion_blur_effect.enabled = !motion_blur_effect.enabled
func _process(delta: float) -> void:
$"../Control/VBoxContainer/HBoxContainer2/fps".text = str(Engine.get_frames_per_second())