From 7c03770bd374e6181e5a53e0779336bf798aa382 Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Tue, 4 Aug 2020 11:54:26 +0200 Subject: [PATCH 1/2] Set atlas viewport before softness in request is set --- .../Runtime/Lighting/Light/HDAdditionalLightData.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs index 8511f62f016..fe25ab9fd98 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs @@ -2021,6 +2021,8 @@ internal int UpdateShadowRequest(HDCamera hdCamera, HDShadowManager manager, HDS if (shadowRequestIndex == -1) continue; + shadowRequest.atlasViewport = resolutionRequest.atlasViewport; + if (!shadowNeedsRendering) { shadowRequest.cachedShadowData.cacheTranslationDelta = cameraPos - m_CachedViewPos; @@ -2080,7 +2082,6 @@ internal int UpdateShadowRequest(HDCamera hdCamera, HDShadowManager manager, HDS SetCommonShadowRequestSettings(shadowRequest, visibleLight, cameraPos, invViewProjection, viewportSize, lightIndex, lightType, filteringQuality); } - shadowRequest.atlasViewport = resolutionRequest.atlasViewport; manager.UpdateShadowRequest(shadowRequestIndex, shadowRequest, shadowIsInCachedSystem); if(shadowIsInCachedSystem && shadowNeedsRendering) From 9b14dac003970ed4b5a68fcbf426cf26a4be495c Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Tue, 4 Aug 2020 11:55:41 +0200 Subject: [PATCH 2/2] Changelog --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 3 ++- 1 file 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 9e53a604e3f..f71004687c6 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -1,4 +1,4 @@ -# Changelog +# Changelog All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) @@ -757,6 +757,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed incorrect processing of Ambient occlusion probe (9% error was introduced) - Fixed GPU hang on D3D12 on xbox. - Fix several issues with physically-based DoF (TAA ghosting of the CoC buffer, smooth layer transitions, etc) +- Fixed issue with PCSS filter being wrong on first frame. ### Changed - Improve MIP selection for decals on Transparents