|
@@ -83,12 +83,17 @@ func _on_filter_option_button_item_selected(index: int) -> void:
|
|
# Viewport scale mode setting.
|
|
# Viewport scale mode setting.
|
|
if index == 0: # Bilinear (Fastest)
|
|
if index == 0: # Bilinear (Fastest)
|
|
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_BILINEAR
|
|
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_BILINEAR
|
|
- # FSR Sharpness is only effective when the scaling mode is FSR 1.0.
|
|
|
|
|
|
+ # FSR Sharpness is only effective when the scaling mode is FSR 1.0 or 2.2.
|
|
%FSRSharpnessLabel.visible = false
|
|
%FSRSharpnessLabel.visible = false
|
|
%FSRSharpnessSlider.visible = false
|
|
%FSRSharpnessSlider.visible = false
|
|
elif index == 1: # FSR 1.0 (Fast)
|
|
elif index == 1: # FSR 1.0 (Fast)
|
|
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR
|
|
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR
|
|
- # FSR Sharpness is only effective when the scaling mode is FSR 1.0.
|
|
|
|
|
|
+ # FSR Sharpness is only effective when the scaling mode is FSR 1.0 or 2.2.
|
|
|
|
+ %FSRSharpnessLabel.visible = true
|
|
|
|
+ %FSRSharpnessSlider.visible = true
|
|
|
|
+ elif index == 2: # FSR 2.2 (Fast)
|
|
|
|
+ get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR2
|
|
|
|
+ # FSR Sharpness is only effective when the scaling mode is FSR 1.0 or 2.2.
|
|
%FSRSharpnessLabel.visible = true
|
|
%FSRSharpnessLabel.visible = true
|
|
%FSRSharpnessSlider.visible = true
|
|
%FSRSharpnessSlider.visible = true
|
|
|
|
|
|
@@ -259,13 +264,16 @@ func _on_ssao_option_button_item_selected(index: int) -> void:
|
|
RenderingServer.environment_set_ssao_quality(RenderingServer.ENV_SSAO_QUALITY_VERY_LOW, true, 0.5, 2, 50, 300)
|
|
RenderingServer.environment_set_ssao_quality(RenderingServer.ENV_SSAO_QUALITY_VERY_LOW, true, 0.5, 2, 50, 300)
|
|
if index == 2: # Low
|
|
if index == 2: # Low
|
|
world_environment.environment.ssao_enabled = true
|
|
world_environment.environment.ssao_enabled = true
|
|
- RenderingServer.environment_set_ssao_quality(RenderingServer.ENV_SSAO_QUALITY_VERY_LOW, true, 0.5, 2, 50, 300)
|
|
|
|
|
|
+ RenderingServer.environment_set_ssao_quality(RenderingServer.ENV_SSAO_QUALITY_LOW, true, 0.5, 2, 50, 300)
|
|
if index == 3: # Medium
|
|
if index == 3: # Medium
|
|
world_environment.environment.ssao_enabled = true
|
|
world_environment.environment.ssao_enabled = true
|
|
RenderingServer.environment_set_ssao_quality(RenderingServer.ENV_SSAO_QUALITY_MEDIUM, true, 0.5, 2, 50, 300)
|
|
RenderingServer.environment_set_ssao_quality(RenderingServer.ENV_SSAO_QUALITY_MEDIUM, true, 0.5, 2, 50, 300)
|
|
if index == 4: # High
|
|
if index == 4: # High
|
|
world_environment.environment.ssao_enabled = true
|
|
world_environment.environment.ssao_enabled = true
|
|
RenderingServer.environment_set_ssao_quality(RenderingServer.ENV_SSAO_QUALITY_HIGH, true, 0.5, 2, 50, 300)
|
|
RenderingServer.environment_set_ssao_quality(RenderingServer.ENV_SSAO_QUALITY_HIGH, true, 0.5, 2, 50, 300)
|
|
|
|
+ if index == 5: # Ultra
|
|
|
|
+ world_environment.environment.ssao_enabled = true
|
|
|
|
+ RenderingServer.environment_set_ssao_quality(RenderingServer.ENV_SSAO_QUALITY_ULTRA, true, 0.5, 2, 50, 300)
|
|
|
|
|
|
|
|
|
|
func _on_ssil_option_button_item_selected(index: int) -> void:
|
|
func _on_ssil_option_button_item_selected(index: int) -> void:
|
|
@@ -286,6 +294,9 @@ func _on_ssil_option_button_item_selected(index: int) -> void:
|
|
if index == 4: # High
|
|
if index == 4: # High
|
|
world_environment.environment.ssil_enabled = true
|
|
world_environment.environment.ssil_enabled = true
|
|
RenderingServer.environment_set_ssil_quality(RenderingServer.ENV_SSIL_QUALITY_HIGH, true, 0.5, 4, 50, 300)
|
|
RenderingServer.environment_set_ssil_quality(RenderingServer.ENV_SSIL_QUALITY_HIGH, true, 0.5, 4, 50, 300)
|
|
|
|
+ if index == 5: # Ultra
|
|
|
|
+ world_environment.environment.ssil_enabled = true
|
|
|
|
+ RenderingServer.environment_set_ssil_quality(RenderingServer.ENV_SSIL_QUALITY_ULTRA, true, 0.5, 4, 50, 300)
|
|
|
|
|
|
|
|
|
|
func _on_sdfgi_option_button_item_selected(index: int) -> void:
|
|
func _on_sdfgi_option_button_item_selected(index: int) -> void:
|
|
@@ -310,8 +321,10 @@ func _on_glow_option_button_item_selected(index: int) -> void:
|
|
world_environment.environment.glow_enabled = false
|
|
world_environment.environment.glow_enabled = false
|
|
if index == 1: # Low
|
|
if index == 1: # Low
|
|
world_environment.environment.glow_enabled = true
|
|
world_environment.environment.glow_enabled = true
|
|
|
|
+ RenderingServer.environment_glow_set_use_bicubic_upscale(false)
|
|
if index == 2: # High
|
|
if index == 2: # High
|
|
world_environment.environment.glow_enabled = true
|
|
world_environment.environment.glow_enabled = true
|
|
|
|
+ RenderingServer.environment_glow_set_use_bicubic_upscale(true)
|
|
|
|
|
|
|
|
|
|
func _on_volumetric_fog_option_button_item_selected(index: int) -> void:
|
|
func _on_volumetric_fog_option_button_item_selected(index: int) -> void:
|