From 43f6fda56a3d2b71ad8e39310797b58c74b379e5 Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Tue, 30 Jun 2020 11:16:35 +0200 Subject: [PATCH 1/2] When integral is negative it means the AO is not computed as it should, so we decide to have no AO --- .../Runtime/Lighting/ScreenSpaceLighting/GTAO.compute | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/Runtime/Lighting/ScreenSpaceLighting/GTAO.compute b/com.unity.render-pipelines.high-definition/Runtime/Lighting/ScreenSpaceLighting/GTAO.compute index 0a03701f784..590a86ce0a8 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Lighting/ScreenSpaceLighting/GTAO.compute +++ b/com.unity.render-pipelines.high-definition/Runtime/Lighting/ScreenSpaceLighting/GTAO.compute @@ -212,7 +212,7 @@ void GTAOMain(uint3 dispatchThreadId : SV_DispatchThreadID) integral /= dirCount; - if (currDepth == UNITY_RAW_FAR_CLIP_VALUE) + if (currDepth == UNITY_RAW_FAR_CLIP_VALUE || integral < -1e-2f) { integral = 1; } From 9d1d13f2e4b84bfe3b371a0ff7a8f104f13183ed Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Tue, 30 Jun 2020 11:24:08 +0200 Subject: [PATCH 2/2] changelog --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 5a58c4f35d4..af18ffd3765 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -698,6 +698,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Force to rebake probe with missing baked texture. (1253367) - Fix supported Mac platform detection to handle new major version (11.0) properly - Fixed typo in the Render Pipeline Wizard under HDRP+VR +- Fixed issue with completely black AO on double sided materials when normal mode is set to None. ### Changed - Improve MIP selection for decals on Transparents