mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Fix MSAA depth resolve not accounting for reverse Z.
This commit is contained in:
parent
2f343bcab7
commit
013bffa27e
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ float main(in float4 position : SV_Position) : SV_Depth
|
||||||
float result = g_Texture2DMSDescriptorHeap[g_PushConstants.ResourceDescriptorIndex].Load(int2(position.xy), 0);
|
float result = g_Texture2DMSDescriptorHeap[g_PushConstants.ResourceDescriptorIndex].Load(int2(position.xy), 0);
|
||||||
|
|
||||||
[unroll] for (int i = 1; i < SAMPLE_COUNT; i++)
|
[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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue