summaryrefslogtreecommitdiff
path: root/client/settings.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/settings.gd')
-rw-r--r--client/settings.gd18
1 files changed, 1 insertions, 17 deletions
diff --git a/client/settings.gd b/client/settings.gd
index dec3ef2e..667ffa41 100644
--- a/client/settings.gd
+++ b/client/settings.gd
@@ -116,23 +116,7 @@ static func apply_initial():
static func h_aa(mode):
var vp = Global.get_viewport()
- match mode:
- "disabled":
- vp.msaa_2d = Viewport.MSAA_DISABLED
- vp.msaa_3d = Viewport.MSAA_DISABLED
- vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_DISABLED
- "fx":
- vp.msaa_2d = Viewport.MSAA_DISABLED
- vp.msaa_3d = Viewport.MSAA_DISABLED
- vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_FXAA
- "ms2x":
- vp.msaa_2d = Viewport.MSAA_2X
- vp.msaa_3d = Viewport.MSAA_2X
- vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_DISABLED
- "ms4x":
- vp.msaa_2d = Viewport.MSAA_4X
- vp.msaa_3d = Viewport.MSAA_4X
- vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_DISABLED
+ Global.configure_viewport_aa(vp, mode)
static func h_taa(enabled):
Global.get_viewport().use_taa = enabled