mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-28 05:11:37 +00:00
Fix procedural filtering logic in ImGui pixel shader.
This commit is contained in:
parent
2efdc23241
commit
c84f8561ab
2 changed files with 4 additions and 4 deletions
|
|
@ -65,10 +65,10 @@ float4 PixelAntialiasing(float2 uvTexspace)
|
||||||
uvTexspace = (uvTexspace - seam) / fwidth(uvTexspace) + seam;
|
uvTexspace = (uvTexspace - seam) / fwidth(uvTexspace) + seam;
|
||||||
uvTexspace = clamp(uvTexspace, seam - 0.5, seam + 0.5);
|
uvTexspace = clamp(uvTexspace, seam - 0.5, seam + 0.5);
|
||||||
|
|
||||||
if (g_PushConstants.InverseDisplaySize.x < g_PushConstants.InverseDisplaySize.y)
|
if ((g_PushConstants.InverseDisplaySize.y / g_PushConstants.InverseDisplaySize.x) >= (4.0 / 3.0))
|
||||||
uvTexspace *= min(1.0, g_PushConstants.InverseDisplaySize.y * 720.0f);
|
uvTexspace *= g_PushConstants.InverseDisplaySize.y * 720.0f;
|
||||||
else
|
else
|
||||||
uvTexspace *= min(1.0, g_PushConstants.InverseDisplaySize.x * 1280.0f);
|
uvTexspace *= g_PushConstants.InverseDisplaySize.x * 960.0f;
|
||||||
|
|
||||||
return SampleLinear(uvTexspace);
|
return SampleLinear(uvTexspace);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ static void DrawScanlineBars()
|
||||||
(
|
(
|
||||||
g_dfsogeistdFont,
|
g_dfsogeistdFont,
|
||||||
Scale(48.0f),
|
Scale(48.0f),
|
||||||
{ Scale(122.0f), Scale(56.0f) },
|
{ Scale((1.0f - g_narrowOffsetScale) * -20.0f + 122.0f), Scale(56.0f) },
|
||||||
IM_COL32(255, 190, 33, 255),
|
IM_COL32(255, 190, 33, 255),
|
||||||
Localise("Options_Header_Name").c_str(),
|
Localise("Options_Header_Name").c_str(),
|
||||||
4,
|
4,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue