From 25fa3af4d7bc245d77ec664dbe0b1753c2e755a6 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Sun, 26 Jan 2025 12:30:34 +0300 Subject: [PATCH] Fix fade scale for original 4:3. --- UnleashedRecomp/gpu/shader/blend_color_alpha_ps.hlsl | 6 +++--- UnleashedRecomp/patches/aspect_ratio_patches.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/UnleashedRecomp/gpu/shader/blend_color_alpha_ps.hlsl b/UnleashedRecomp/gpu/shader/blend_color_alpha_ps.hlsl index ea9c63b1..6c242903 100644 --- a/UnleashedRecomp/gpu/shader/blend_color_alpha_ps.hlsl +++ b/UnleashedRecomp/gpu/shader/blend_color_alpha_ps.hlsl @@ -17,14 +17,14 @@ cbuffer SharedConstants : register(b2, space4) { uint s0_Texture2DDescriptorIndex : packoffset(c0.x); uint s0_SamplerDescriptorIndex : packoffset(c12.x); - DEFINE_SHARED_CONSTANTS(); + DEFINE_SHARED_CONSTANTS(); }; #endif float4 main( - in float4 iPos : SV_Position, - in float4 iTexCoord0 : TEXCOORD0) : SV_Target0 + in float4 iPos : SV_Position, + in float4 iTexCoord0 : TEXCOORD0) : SV_Target0 { Texture2D texture = g_Texture2DDescriptorHeap[s0_Texture2DDescriptorIndex]; SamplerState samplerState = g_SamplerDescriptorHeap[s0_SamplerDescriptorIndex]; diff --git a/UnleashedRecomp/patches/aspect_ratio_patches.cpp b/UnleashedRecomp/patches/aspect_ratio_patches.cpp index a6c43c22..5caf7861 100644 --- a/UnleashedRecomp/patches/aspect_ratio_patches.cpp +++ b/UnleashedRecomp/patches/aspect_ratio_patches.cpp @@ -1280,7 +1280,7 @@ void YggdrasillRenderQuadMidAsmHook(PPCRegister& r3, PPCRegister& r6) if (Config::AspectRatio == EAspectRatio::OriginalNarrow) { if (g_fadeTextureMode == FadeTextureMode::Letterbox) - scaleY = 1.25f; + scaleY = NARROW_ASPECT_RATIO; else scaleX = 0.8f; }