diff --git a/Assets/Scripts/Fsr2Controller.cs b/Assets/Scripts/Fsr2Controller.cs index f2a9d55..688eb2a 100644 --- a/Assets/Scripts/Fsr2Controller.cs +++ b/Assets/Scripts/Fsr2Controller.cs @@ -188,7 +188,7 @@ namespace FidelityFX _dispatchDescription.Reset = _reset; _reset = false; - // Perform custom jittering of the camera's projection matrix according to FSR2's documentation + // Perform custom jittering of the camera's projection matrix according to FSR2's recipe int jitterPhaseCount = Fsr2.GetJitterPhaseCount(_renderSize.x, _displaySize.x); Fsr2.GetJitterOffset(out float jitterX, out float jitterY, Time.frameCount, jitterPhaseCount); @@ -200,7 +200,7 @@ namespace FidelityFX var jitterTranslationMatrix = Matrix4x4.Translate(new Vector3(jitterX, jitterY, 0)); _renderCamera.nonJitteredProjectionMatrix = _renderCamera.projectionMatrix; _renderCamera.projectionMatrix = jitterTranslationMatrix * _renderCamera.nonJitteredProjectionMatrix; - _renderCamera.useJitteredProjectionMatrixForTransparentRendering = false; + _renderCamera.useJitteredProjectionMatrixForTransparentRendering = true; } private void OnRenderImage(RenderTexture src, RenderTexture dest)