Improved UI
This commit is contained in:
@ -1,15 +1,4 @@
|
||||
extends OptionButton
|
||||
|
||||
func on_item_selected(index: int):
|
||||
match index:
|
||||
0:
|
||||
preset_low()
|
||||
1:
|
||||
preset_medium()
|
||||
2:
|
||||
preset_high()
|
||||
|
||||
get_tree().call_group("video_preset_setting", "_ready")
|
||||
extends Node
|
||||
|
||||
func preset_low():
|
||||
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_BILINEAR
|
||||
@ -20,6 +9,7 @@ func preset_low():
|
||||
Global.environment.volumetric_fog_enabled = false
|
||||
Global.camera_attributes.dof_blur_far_enabled = false
|
||||
Global.camera_attributes.dof_blur_near_enabled = false
|
||||
get_tree().call_group("video_preset_setting", "_ready")
|
||||
|
||||
func preset_medium():
|
||||
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR2
|
||||
@ -30,6 +20,7 @@ func preset_medium():
|
||||
Global.environment.volumetric_fog_enabled = false
|
||||
Global.camera_attributes.dof_blur_far_enabled = false
|
||||
Global.camera_attributes.dof_blur_near_enabled = false
|
||||
get_tree().call_group("video_preset_setting", "_ready")
|
||||
|
||||
func preset_high():
|
||||
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR2
|
||||
@ -39,4 +30,5 @@ func preset_high():
|
||||
Global.environment.ssil_enabled = true
|
||||
Global.environment.volumetric_fog_enabled = true
|
||||
Global.camera_attributes.dof_blur_far_enabled = true
|
||||
Global.camera_attributes.dof_blur_near_enabled = true
|
||||
Global.camera_attributes.dof_blur_near_enabled = true
|
||||
get_tree().call_group("video_preset_setting", "_ready")
|
Reference in New Issue
Block a user