2024-02-12 21:09:26 +01:00

34 lines
1.4 KiB
GDScript

extends Node
func preset_low():
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR2
get_viewport().scaling_3d_scale = RenderScale.fsrQuality[0]
Global.environment.glow_enabled = false
Global.environment.ssao_enabled = false
Global.environment.ssil_enabled = false
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
get_viewport().scaling_3d_scale = RenderScale.fsrQuality[2]
Global.environment.glow_enabled = true
Global.environment.ssao_enabled = true
Global.environment.ssil_enabled = false
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
get_viewport().scaling_3d_scale = RenderScale.fsrQuality[3]
Global.environment.glow_enabled = true
Global.environment.ssao_enabled = true
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
get_tree().call_group("video_preset_setting", "_ready")