From e335624ae1a6f3948a9b17b31b487f94369ab785 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Thu, 30 Mar 2023 13:12:37 +0200 Subject: [PATCH] Removed the backbuffer check, as it caused a false positive when a second overlay camera is active on top of the FSR2 output. Turns out blitting to an intermediate render texture works just fine if all FSR2 needs to do is output a color buffer. --- Assets/Scripts/Fsr2ImageEffect.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Assets/Scripts/Fsr2ImageEffect.cs b/Assets/Scripts/Fsr2ImageEffect.cs index 9e43a32..86c9369 100644 --- a/Assets/Scripts/Fsr2ImageEffect.cs +++ b/Assets/Scripts/Fsr2ImageEffect.cs @@ -302,14 +302,6 @@ namespace FidelityFX _renderCamera.rect = _originalRect; _renderCamera.ResetProjectionMatrix(); - if (dest != null && _originalRenderTarget == null) - { - Debug.LogError("FSR2 is not set to output directly to the backbuffer! Please ensure that FSR2 is the final pass in the image effects chain."); - Graphics.Blit(src, dest); - enabled = false; - return; - } - // Update the input resource descriptions _dispatchDescription.InputResourceSize = new Vector2Int(src.width, src.height);