diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-08 14:22:22 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-08 14:22:22 +1000 |
commit | 8a8a0501590e83cbc598c7491fca0b767094466f (patch) | |
tree | 4fd806e646179fa9a7e4027cc60e19492d003ade /source/client/StarClientApplication.cpp | |
parent | 4458d2e85ed7f9e373af290dbe8063a52d2824b5 (diff) |
2 features: multi-sample anti-aliasing & Lua patches for images
Diffstat (limited to 'source/client/StarClientApplication.cpp')
-rw-r--r-- | source/client/StarClientApplication.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index bcdc077..c83c9e7 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -58,6 +58,7 @@ Json const AdditionalDefaultConfiguration = Json::parseJson(R"JSON( "fullscreen" : false, "borderless" : false, "maximized" : true, + "antiAliasing" : false, "zoomLevel" : 3.0, "cameraSpeedFactor" : 1.0, "speechBubbles" : true, @@ -375,6 +376,7 @@ void ClientApplication::render() { auto assets = m_root->assets(); auto& renderer = Application::renderer(); + renderer->setMultiSampling(config->get("antiAliasing").optBool().value(false) ? 4 : 0); renderer->switchEffectConfig("interface"); if (m_guiContext->windowWidth() >= m_crossoverRes[0] && m_guiContext->windowHeight() >= m_crossoverRes[1]) @@ -452,7 +454,7 @@ void ClientApplication::renderReload() { Logger::warn("No rendering config found for renderer with id '{}'", renderer->rendererId()); }; - renderer->loadConfig(assets->json("/rendering/opengl20.config")); + renderer->loadConfig(assets->json("/rendering/opengl.config")); loadEffectConfig("world"); loadEffectConfig("interface"); |