Skip to content

Commit dff4cfe

Browse files
author
Pierre GAC
committed
Added "PostProcessLayer resets camera projection matrix in OnPreCull" issue fix from manutoo
1 parent 110f53a commit dff4cfe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PostProcessing/Runtime/PostProcessLayer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,13 @@ void OnPreCull()
421421
// when ResetProjectionMatrix() is called and will break transparent rendering if TAA
422422
// is switched off and the FOV or any other camera property changes.
423423

424+
if (m_CurrentContext.IsTemporalAntialiasingActive())
425+
{
424426
#if UNITY_2018_2_OR_NEWER
425427
if (!m_Camera.usePhysicalProperties)
426428
#endif
427429
m_Camera.ResetProjectionMatrix();
430+
}
428431
m_Camera.nonJitteredProjectionMatrix = m_Camera.projectionMatrix;
429432

430433
#if ENABLE_VR

0 commit comments

Comments
 (0)