From c8d1ca5c02fc2db4e4434a3d290496a753380bf6 Mon Sep 17 00:00:00 2001 From: Anis Date: Wed, 1 Jul 2020 16:17:46 +0200 Subject: [PATCH] Fixed an error when clearing the SSGI history texture at creation time (1259930). --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + .../Runtime/Lighting/ScreenSpaceLighting/SSGIDenoiser.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 74ec5927688..5af896635bf 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -702,6 +702,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed typo in the Render Pipeline Wizard under HDRP+VR - Change transparent SSR name in frame settings to avoid clipping. - Fixed fallback for ray tracing and light layers (1258837). +- Fixed an error when clearing the SSGI history texture at creation time (1259930). ### Changed - Improve MIP selection for decals on Transparents diff --git a/com.unity.render-pipelines.high-definition/Runtime/Lighting/ScreenSpaceLighting/SSGIDenoiser.cs b/com.unity.render-pipelines.high-definition/Runtime/Lighting/ScreenSpaceLighting/SSGIDenoiser.cs index f395df46874..75ba484e18a 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Lighting/ScreenSpaceLighting/SSGIDenoiser.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/Lighting/ScreenSpaceLighting/SSGIDenoiser.cs @@ -129,7 +129,7 @@ public void Denoise(CommandBuffer cmd, HDCamera hdCamera, { indirectDiffuseHistory = hdCamera.AllocHistoryFrameRT((int)HDCameraFrameHistoryType.RaytracedIndirectDiffuseHF, IndirectDiffuseHistoryBufferAllocatorFunction, 1); // clear it to black if this is the first pass to avoid nans - CoreUtils.SetRenderTarget(cmd, indirectDiffuseHistory, m_SharedRTManager.GetDepthStencilBuffer(), ClearFlag.Color, clearColor: Color.black); + CoreUtils.SetRenderTarget(cmd, indirectDiffuseHistory, ClearFlag.Color, clearColor: Color.black); } // Pick the right kernel to use