Skip to content

Commit

Permalink
[Port] [2021.3] [2022.3 Backport] Bug Fix - [UUM-57147] - Disabling N…
Browse files Browse the repository at this point in the history
…RP for Editor FinalCopyDepth pass

Backport of #48821 
Fixed UUM-57147
  • Loading branch information
svc-reach-platform-support authored and Evergreen committed Jun 6, 2024
1 parent 7db7612 commit 4117a0c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,10 @@ public override void Setup(ScriptableRenderContext context, ref RenderingData re
// Scene view camera should always resolve target (not stacked)
m_FinalDepthCopyPass.Setup(m_DepthTexture, RenderTargetHandle.CameraTarget);
m_FinalDepthCopyPass.MssaSamples = 0;
// Turning off unnecessary NRP in Editor because of MSAA mistmatch between CameraTargetDescriptor vs camera backbuffer
// NRP layer considers this being a pass with MSAA samples by checking CameraTargetDescriptor taken from RP asset
// while the camera backbuffer has a single sample
m_FinalDepthCopyPass.useNativeRenderPass = false;
EnqueuePass(m_FinalDepthCopyPass);
}
#endif
Expand Down

0 comments on commit 4117a0c

Please sign in to comment.