diff options
Diffstat (limited to 'client/global.gd')
-rw-r--r-- | client/global.gd | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/global.gd b/client/global.gd index c3f1ef55..732363ee 100644 --- a/client/global.gd +++ b/client/global.gd @@ -247,3 +247,18 @@ class ParsedItem: var c = Array(full_name.split(":")) name = c[0] contents = c[1].split(",") if c.size() > 1 else [] + +func configure_viewport_aa(vp: Viewport, aa: String) -> void: + match aa: + "disabled": + vp.msaa_3d = Viewport.MSAA_DISABLED + vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_DISABLED + "fx": + vp.msaa_3d = Viewport.MSAA_DISABLED + vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_FXAA + "ms2x": + vp.msaa_3d = Viewport.MSAA_2X + vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_DISABLED + "ms4x": + vp.msaa_3d = Viewport.MSAA_4X + vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_DISABLED |