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

Commit 2a0e7c5

Browse files
committed
Fixed AO quality/downsampling
1 parent bde7621 commit 2a0e7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/Runtime/Effects/AmbientOcclusion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ PropertySheet PreRender(PostProcessRenderContext context, int occlusionSource)
7777

7878
// Material setup
7979
// Always use a quater-res AO buffer unless High/Ultra quality is set.
80-
bool downsampling = (int)quality >= (int)Quality.High;
80+
bool downsampling = (int)quality < (int)Quality.High;
8181
float px = intensity;
8282
float py = radius;
8383
float pz = downsampling ? 0.5f : 1f;

0 commit comments

Comments
 (0)