From ccc70f7bc43a97613eff0f5fc60b53a30b7b1ae7 Mon Sep 17 00:00:00 2001 From: JorgeZubog <31701760+JorgeZubog@users.noreply.github.com> Date: Fri, 18 Oct 2019 16:56:10 +0200 Subject: [PATCH] Fix bug for costumize projection matrix in order to do not initilize the projection matrix --- PostProcessing/Runtime/PostProcessLayer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PostProcessing/Runtime/PostProcessLayer.cs b/PostProcessing/Runtime/PostProcessLayer.cs index dc9ac7d4..45433152 100644 --- a/PostProcessing/Runtime/PostProcessLayer.cs +++ b/PostProcessing/Runtime/PostProcessLayer.cs @@ -428,7 +428,8 @@ void OnPreCull() #if UNITY_2018_2_OR_NEWER if (!m_Camera.usePhysicalProperties) #endif - m_Camera.ResetProjectionMatrix(); + if (m_CurrentContext.IsTemporalAntialiasingActive()) + m_Camera.ResetProjectionMatrix(); m_Camera.nonJitteredProjectionMatrix = m_Camera.projectionMatrix; #if ENABLE_VR