Compare width to pick gaussian blur quality for narrow aspect ratios.

This commit is contained in:
Skyth 2025-01-22 17:33:04 +03:00
parent f4952a4d82
commit d7b35fb61e

View file

@ -4351,6 +4351,8 @@ static void ProcSetPixelShader(const RenderCommand& cmd)
break; break;
default: default:
{
if (g_aspectRatio >= WIDE_ASPECT_RATIO)
{ {
size_t height = round(Video::s_viewportHeight * Config::ResolutionScale); size_t height = round(Video::s_viewportHeight * Config::ResolutionScale);
@ -4362,6 +4364,21 @@ static void ProcSetPixelShader(const RenderCommand& cmd)
shaderIndex = GAUSSIAN_BLUR_5X5; shaderIndex = GAUSSIAN_BLUR_5X5;
else else
shaderIndex = GAUSSIAN_BLUR_3X3; shaderIndex = GAUSSIAN_BLUR_3X3;
}
else
{
// 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;
} }