mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 21:01:37 +00:00
Fix fade scale for original 4:3.
This commit is contained in:
parent
3d30b4f283
commit
25fa3af4d7
2 changed files with 4 additions and 4 deletions
|
|
@ -17,14 +17,14 @@ cbuffer SharedConstants : register(b2, space4)
|
||||||
{
|
{
|
||||||
uint s0_Texture2DDescriptorIndex : packoffset(c0.x);
|
uint s0_Texture2DDescriptorIndex : packoffset(c0.x);
|
||||||
uint s0_SamplerDescriptorIndex : packoffset(c12.x);
|
uint s0_SamplerDescriptorIndex : packoffset(c12.x);
|
||||||
DEFINE_SHARED_CONSTANTS();
|
DEFINE_SHARED_CONSTANTS();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
float4 main(
|
float4 main(
|
||||||
in float4 iPos : SV_Position,
|
in float4 iPos : SV_Position,
|
||||||
in float4 iTexCoord0 : TEXCOORD0) : SV_Target0
|
in float4 iTexCoord0 : TEXCOORD0) : SV_Target0
|
||||||
{
|
{
|
||||||
Texture2D<float4> texture = g_Texture2DDescriptorHeap[s0_Texture2DDescriptorIndex];
|
Texture2D<float4> texture = g_Texture2DDescriptorHeap[s0_Texture2DDescriptorIndex];
|
||||||
SamplerState samplerState = g_SamplerDescriptorHeap[s0_SamplerDescriptorIndex];
|
SamplerState samplerState = g_SamplerDescriptorHeap[s0_SamplerDescriptorIndex];
|
||||||
|
|
|
||||||
|
|
@ -1280,7 +1280,7 @@ void YggdrasillRenderQuadMidAsmHook(PPCRegister& r3, PPCRegister& r6)
|
||||||
if (Config::AspectRatio == EAspectRatio::OriginalNarrow)
|
if (Config::AspectRatio == EAspectRatio::OriginalNarrow)
|
||||||
{
|
{
|
||||||
if (g_fadeTextureMode == FadeTextureMode::Letterbox)
|
if (g_fadeTextureMode == FadeTextureMode::Letterbox)
|
||||||
scaleY = 1.25f;
|
scaleY = NARROW_ASPECT_RATIO;
|
||||||
else
|
else
|
||||||
scaleX = 0.8f;
|
scaleX = 0.8f;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue