mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Compare width to pick gaussian blur quality for narrow aspect ratios.
This commit is contained in:
parent
f4952a4d82
commit
d7b35fb61e
1 changed files with 25 additions and 8 deletions
|
|
@ -4352,16 +4352,33 @@ static void ProcSetPixelShader(const RenderCommand& cmd)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
size_t height = round(Video::s_viewportHeight * Config::ResolutionScale);
|
if (g_aspectRatio >= WIDE_ASPECT_RATIO)
|
||||||
|
{
|
||||||
|
size_t height = round(Video::s_viewportHeight * Config::ResolutionScale);
|
||||||
|
|
||||||
if (height > 1440)
|
if (height > 1440)
|
||||||
shaderIndex = GAUSSIAN_BLUR_9X9;
|
shaderIndex = GAUSSIAN_BLUR_9X9;
|
||||||
else if (height > 1080)
|
else if (height > 1080)
|
||||||
shaderIndex = GAUSSIAN_BLUR_7X7;
|
shaderIndex = GAUSSIAN_BLUR_7X7;
|
||||||
else if (height > 720)
|
else if (height > 720)
|
||||||
shaderIndex = GAUSSIAN_BLUR_5X5;
|
shaderIndex = GAUSSIAN_BLUR_5X5;
|
||||||
|
else
|
||||||
|
shaderIndex = GAUSSIAN_BLUR_3X3;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
shaderIndex = GAUSSIAN_BLUR_3X3;
|
{
|
||||||
|
// Narrow aspect ratios should check for width to account for VERT+.
|
||||||
|
size_t width = round(Video::s_viewportWidth * Config::ResolutionScale);
|
||||||
|
|
||||||
|
if (width > 2560)
|
||||||
|
shaderIndex = GAUSSIAN_BLUR_9X9;
|
||||||
|
else if (width > 1920)
|
||||||
|
shaderIndex = GAUSSIAN_BLUR_7X7;
|
||||||
|
else if (width > 1280)
|
||||||
|
shaderIndex = GAUSSIAN_BLUR_5X5;
|
||||||
|
else
|
||||||
|
shaderIndex = GAUSSIAN_BLUR_3X3;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue