Fixed an issue where the background was too dark when opening a menu with the dark menu color scheme and the option to blur the background was disabled

This commit is contained in:
Leon Styhre 2023-08-13 18:27:23 +02:00
parent 2aa74878bb
commit d7c03e52fb

View file

@ -591,7 +591,11 @@ void Window::render()
}
else {
// Dim the background slightly.
if (Settings::getInstance()->getString("MenuColorScheme") == "light")
backgroundParameters.dimming = 0.60f;
else
backgroundParameters.dimming = 0.80f;
mRenderer->shaderPostprocessing(Renderer::Shader::CORE, backgroundParameters,
&processedTexture[0]);
}