Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 67de290

Browse files
committed
Fixed broken TAA
We still need this code because reasons
1 parent 08b1319 commit 67de290

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

PostProcessing/Runtime/PostProcessLayer.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,16 @@ void OnPreCull()
363363
m_LegacyCmdBuffer.ReleaseTemporaryRT(tempRt);
364364
}
365365

366+
void OnPostRender()
367+
{
368+
// Unused in scriptable render pipelines
369+
if (RuntimeUtilities.scriptableRenderPipelineActive)
370+
return;
371+
372+
if (m_CurrentContext.IsTemporalAntialiasingActive())
373+
m_Camera.ResetProjectionMatrix();
374+
}
375+
366376
PostProcessBundle GetBundle<T>()
367377
where T : PostProcessEffectSettings
368378
{

0 commit comments

Comments
 (0)