Update DoF quality thresholds.

This commit is contained in:
Skyth 2024-12-13 11:27:24 +03:00
parent e79d2edc2d
commit 87e3602f41

View file

@ -3987,12 +3987,11 @@ static void ProcSetPixelShader(const RenderCommand& cmd)
{
size_t height = round(g_swapChain->getHeight() * Config::ResolutionScale);
// Use the middle point between resolutions to have the transition less noticable.
if (height >= ((2160 + 1440) / 2))
if (height > 1440)
shaderIndex = GAUSSIAN_BLUR_9X9;
else if (height >= ((1440 + 1080) / 2))
else if (height > 1080)
shaderIndex = GAUSSIAN_BLUR_7X7;
else if (height >= ((1080 + 720) / 2))
else if (height > 720)
shaderIndex = GAUSSIAN_BLUR_5X5;
else
shaderIndex = GAUSSIAN_BLUR_3X3;