mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-06-06 03:39:09 -04:00
Remove half pixel globally instead of negating them with patches.
This commit is contained in:
@@ -8,7 +8,6 @@ Interpolators main(in VertexShaderInput In)
|
||||
|
||||
Interpolators Out;
|
||||
Out.ProjPos = In.ObjPos;
|
||||
Out.ProjPos.xy += float2(GET_CONSTANT(g_ViewportSize).z, -GET_CONSTANT(g_ViewportSize).w);
|
||||
Out.UV = In.UV;
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ float main(in float4 position : SV_Position) : SV_Depth
|
||||
float result = g_Texture2DMSDescriptorHeap[g_PushConstants.ResourceDescriptorIndex].Load(int2(position.xy), 0);
|
||||
|
||||
[unroll] for (int i = 1; i < SAMPLE_COUNT; i++)
|
||||
result = max(result, g_Texture2DMSDescriptorHeap[g_PushConstants.ResourceDescriptorIndex].Load(int2(position.xy), i));
|
||||
result = min(result, g_Texture2DMSDescriptorHeap[g_PushConstants.ResourceDescriptorIndex].Load(int2(position.xy), i));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user