From d19ef8f002f2803541262eb9c1d9eb4d627ff652 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 3 Oct 2017 10:20:17 +0200 Subject: [PATCH] Fixed 927818 (Xbox flickering artifacts with HDR/AO) --- PostProcessing/Shaders/Builtins/ScalableAO.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostProcessing/Shaders/Builtins/ScalableAO.hlsl b/PostProcessing/Shaders/Builtins/ScalableAO.hlsl index a6287845..317c17e8 100644 --- a/PostProcessing/Shaders/Builtins/ScalableAO.hlsl +++ b/PostProcessing/Shaders/Builtins/ScalableAO.hlsl @@ -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