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

Commit d19ef8f

Browse files
committed
Fixed 927818 (Xbox flickering artifacts with HDR/AO)
1 parent f5b2a0a commit d19ef8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/Shaders/Builtins/ScalableAO.hlsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ float4 FragBlur(VaryingsDefault i) : SV_Target
345345
half EncodeAO(half x)
346346
{
347347
#if UNITY_COLORSPACE_GAMMA
348-
return 1.0 - max(LinearToSRGB(1.0 - x), 0.0);
348+
return 1.0 - max(LinearToSRGB(1.0 - saturate(x)), 0.0);
349349
#else
350350
return x;
351351
#endif

0 commit comments

Comments
 (0)