Browse Source

Set a default motion blending value on depth-of-field when FSR is active. Reduces jittering artifacts on DoF blur.

stable
Nico de Poel 3 years ago
parent
commit
5bca835097
  1. 2
      Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/DepthOfField.cs

2
Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/DepthOfField.cs

@ -206,7 +206,7 @@ namespace UnityEngine.Rendering.PostProcessing
else if (context.IsSuperResolutionActive()) else if (context.IsSuperResolutionActive())
{ {
var jitter = context.superResolution.jitter; 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()) if (context.IsTemporalAntialiasingActive() || context.IsSuperResolutionActive())

Loading…
Cancel
Save