Skip to content

Commit 97db210

Browse files
Fix SSAO with double sided material and normal mode to none #1043
1 parent be55ef1 commit 97db210

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
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2121
- Fixed warning in HDAdditionalLightData OnValidate (cases 1250864, 1244578)
2222
- Fixed issue with blue line in prefabs for volume mode.
2323
- Fix issue that caused sky to incorrectly render when using a custom projection matrix.
24+
- Fixed issue with completely black AO on double sided materials when normal mode is set to None.
2425

2526
### Changed
2627
- Changed extensions of shader CAS include files.

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)