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

Commit

Permalink
Fixed 927818 (Xbox flickering artifacts with HDR/AO)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chman committed Oct 3, 2017
1 parent f5b2a0a commit d19ef8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PostProcessing/Shaders/Builtins/ScalableAO.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ float4 FragBlur(VaryingsDefault i) : SV_Target
half EncodeAO(half x)
{
#if UNITY_COLORSPACE_GAMMA
return 1.0 - max(LinearToSRGB(1.0 - x), 0.0);
return 1.0 - max(LinearToSRGB(1.0 - saturate(x)), 0.0);
#else
return x;
#endif
Expand Down

0 comments on commit d19ef8f

Please sign in to comment.