mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-23 16:32:22 +00:00
Update DoF quality thresholds.
This commit is contained in:
parent
e79d2edc2d
commit
87e3602f41
1 changed files with 3 additions and 4 deletions
|
|
@ -3987,12 +3987,11 @@ static void ProcSetPixelShader(const RenderCommand& cmd)
|
||||||
{
|
{
|
||||||
size_t height = round(g_swapChain->getHeight() * Config::ResolutionScale);
|
size_t height = round(g_swapChain->getHeight() * Config::ResolutionScale);
|
||||||
|
|
||||||
// Use the middle point between resolutions to have the transition less noticable.
|
if (height > 1440)
|
||||||
if (height >= ((2160 + 1440) / 2))
|
|
||||||
shaderIndex = GAUSSIAN_BLUR_9X9;
|
shaderIndex = GAUSSIAN_BLUR_9X9;
|
||||||
else if (height >= ((1440 + 1080) / 2))
|
else if (height > 1080)
|
||||||
shaderIndex = GAUSSIAN_BLUR_7X7;
|
shaderIndex = GAUSSIAN_BLUR_7X7;
|
||||||
else if (height >= ((1080 + 720) / 2))
|
else if (height > 720)
|
||||||
shaderIndex = GAUSSIAN_BLUR_5X5;
|
shaderIndex = GAUSSIAN_BLUR_5X5;
|
||||||
else
|
else
|
||||||
shaderIndex = GAUSSIAN_BLUR_3X3;
|
shaderIndex = GAUSSIAN_BLUR_3X3;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue