Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 26abb19

Browse files
committed
Fixed AO's "High Precision" toggle not having any effect with Deferred + Force Forward Compatibility
1 parent 4ce8688 commit 26abb19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/Runtime/Components/AmbientOcclusionComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OcclusionSource occlusionSource
4242
if (context.isGBufferAvailable && !model.settings.forceForwardCompatibility)
4343
return OcclusionSource.GBuffer;
4444

45-
if (model.settings.highPrecision && !context.isGBufferAvailable)
45+
if (model.settings.highPrecision && (!context.isGBufferAvailable || model.settings.forceForwardCompatibility))
4646
return OcclusionSource.DepthTexture;
4747

4848
return OcclusionSource.DepthNormalsTexture;

0 commit comments

Comments
 (0)