From 5bca835097b8b4476a379f5dab1f43899455a95b Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Thu, 1 Jun 2023 11:34:38 +0200 Subject: [PATCH] Set a default motion blending value on depth-of-field when FSR is active. Reduces jittering artifacts on DoF blur. --- .../PostProcessing/Runtime/Effects/DepthOfField.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/DepthOfField.cs b/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/DepthOfField.cs index 3eb7f31..0ecd9f7 100644 --- a/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/DepthOfField.cs +++ b/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/DepthOfField.cs @@ -206,7 +206,7 @@ namespace UnityEngine.Rendering.PostProcessing else if (context.IsSuperResolutionActive()) { var jitter = context.superResolution.jitter; - sheet.properties.SetVector(ShaderIDs.TaaParams, new Vector3(jitter.x, jitter.y, 0f)); + sheet.properties.SetVector(ShaderIDs.TaaParams, new Vector3(jitter.x, jitter.y, m_ResetHistory ? 0f : 0.85f)); } if (context.IsTemporalAntialiasingActive() || context.IsSuperResolutionActive())