From ad10bda37e6d8edb3a047b6f219782f71b63a015 Mon Sep 17 00:00:00 2001 From: Alayan <25536748+Alayan-stk-2@users.noreply.github.com> Date: Sun, 12 May 2024 18:12:19 +0200 Subject: [PATCH] Add a 7th graphical level preset Compared to level 6, it increases shadow resolution to 2048 and auto-LoD distances to Ultra. --- src/states_screens/options/options_screen_video.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/states_screens/options/options_screen_video.cpp b/src/states_screens/options/options_screen_video.cpp index 5560df462..63631bcd7 100644 --- a/src/states_screens/options/options_screen_video.cpp +++ b/src/states_screens/options/options_screen_video.cpp @@ -86,6 +86,14 @@ void OptionsScreenVideo::initPresets() false /* degraded IBL */, 4 /* Geometry Detail */ }); + m_presets.push_back // Level 7 + ({ + true /* light */, 2048 /* shadow */, true /* bloom */, true /* lightshaft */, + true /* glow */, true /* mlaa */, true /* ssao */, true /* light scatter */, + true /* animatedCharacters */, 2 /* particles */, 3 /* image_quality */, + false /* degraded IBL */, 5 /* Geometry Detail */ + }); + m_blur_presets.push_back ({ false /* motionblur */, false /* depth of field */ @@ -199,7 +207,7 @@ OptionsScreenVideo::OptionsScreenVideo() : Screen("options/options_video.stkgui" void OptionsScreenVideo::loadedFromFile() { m_inited = false; - assert(m_presets.size() == 6); + assert(m_presets.size() == 7); assert(m_blur_presets.size() == 3); GUIEngine::SpinnerWidget* gfx =