Reverted the dim value for the screensaver.

This commit is contained in:
Leon Styhre 2022-03-15 00:09:58 +01:00
parent 06a037d8cf
commit 7bdce3f4a3

View file

@ -349,8 +349,8 @@ void Screensaver::renderScreensaver()
dimParameters.dimming = mDimValue;
dimParameters.saturation = mSaturationAmount;
mRenderer->shaderPostprocessing(Renderer::Shader::CORE, dimParameters);
if (mDimValue > 0.63)
mDimValue = glm::clamp(mDimValue - 0.015f, 0.68f, 1.0f);
if (mDimValue > 0.4)
mDimValue = glm::clamp(mDimValue - 0.021f, 0.4f, 1.0f);
if (mSaturationAmount > 0.0)
mSaturationAmount = glm::clamp(mSaturationAmount - 0.035f, 0.0f, 1.0f);
}