From e96b1a2c0c46f575454603631e85daf78081764a Mon Sep 17 00:00:00 2001 From: Hendrik Brucker Date: Sat, 13 Aug 2022 01:02:32 +0200 Subject: Implement MSAA for 2D [Vulkan only] --- editor/editor_node.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor/editor_node.cpp') diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index e7946f56da..3deee9b3b5 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -543,6 +543,9 @@ void EditorNode::_update_from_settings() { Viewport::SDFScale sdf_scale = Viewport::SDFScale(int(GLOBAL_GET("rendering/2d/sdf/scale"))); scene_root->set_sdf_scale(sdf_scale); + Viewport::MSAA msaa = Viewport::MSAA(int(GLOBAL_GET("rendering/anti_aliasing/quality/msaa_2d"))); + scene_root->set_msaa_2d(msaa); + float mesh_lod_threshold = GLOBAL_GET("rendering/mesh_lod/lod_change/threshold_pixels"); scene_root->set_mesh_lod_threshold(mesh_lod_threshold); -- cgit v1.2.3