Skip to content

Commit 3b7f7fb

Browse files
FrancescoC-unitysebastienlagarde
authored andcommitted
Fix SSAO with double sided material and normal mode to none #1043
1 parent bf89377 commit 3b7f7fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6262
- Fixed AxF handling of roughness for Blinn-Phong type materials
6363
- Fixed AxF UI errors when surface type is switched to transparent
6464
- Fix issue that caused sky to incorrectly render when using a custom projection matrix.
65+
- Fixed issue with completely black AO on double sided materials when normal mode is set to None.
6566

6667
### Changed
6768
- Shadowmask and realtime reflection probe property are hide in Quality settings

com.unity.render-pipelines.high-definition/Runtime/Lighting/ScreenSpaceLighting/GTAO.compute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void GTAO_KERNEL_NAME(uint3 dispatchThreadId : SV_DispatchThreadID)
214214

215215
integral /= dirCount;
216216

217-
if (currDepth == UNITY_RAW_FAR_CLIP_VALUE)
217+
if (currDepth == UNITY_RAW_FAR_CLIP_VALUE || integral < -1e-2f)
218218
{
219219
integral = 1;
220220
}

0 commit comments

Comments
 (0)