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

Commit 7bc8a8a

Browse files
committed
Fixed depth source in TAA
1 parent 5319de6 commit 7bc8a8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PostProcessing/Runtime/Components/TaaComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void Render(RenderTexture source, RenderTexture destination)
9898
m_MRT[0] = destination.colorBuffer;
9999
m_MRT[1] = tempHistory.colorBuffer;
100100

101-
Graphics.SetRenderTarget(m_MRT, destination.depthBuffer);
101+
Graphics.SetRenderTarget(m_MRT, source.depthBuffer);
102102
GraphicsUtils.Blit(material, context.camera.orthographic ? 1 : 0);
103103

104104
RenderTexture.ReleaseTemporary(m_HistoryTexture);

0 commit comments

Comments
 (0)