Skip to content

Commit

Permalink
[URP] Fixed preview camera causes spam in console
Browse files Browse the repository at this point in the history
Jira: https://jira.unity3d.com/browse/UUM-6363
Fixed SpeedTree Shadergraph causes errors spammed in console
  • Loading branch information
thomas-zeng committed Jul 26, 2022
1 parent 3b62eec commit 4e10c91
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,9 @@ public override void Setup(ScriptableRenderContext context, ref RenderingData re
ConfigureCameraColorTarget(m_ColorBufferSystem.PeekBackBuffer());

bool copyColorPass = renderingData.cameraData.requiresOpaqueTexture || renderPassInputs.requiresColorTexture;
// Check the createColorTexture logic above: intermediate color texture is not available for preview cameras.
// Because intermediate color is not available and copyColor pass requires it, we disable CopyColor pass here.
copyColorPass &= !isPreviewCamera;

// Assign camera targets (color and depth)
ConfigureCameraTarget(m_ActiveCameraColorAttachment, m_ActiveCameraDepthAttachment);
Expand Down

0 comments on commit 4e10c91

Please sign in to comment.