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

Commit 8ac33e0

Browse files
committed
Merge remote-tracking branch 'refs/remotes/Unity-Technologies/master'
2 parents c14d837 + ac36f8b commit 8ac33e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PostProcessing/Runtime/Components/TaaComponent.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ static class Uniforms
1818

1919
readonly RenderBuffer[] m_MRT = new RenderBuffer[2];
2020

21-
int m_SampleIndex;
22-
bool m_ResetHistory;
21+
int m_SampleIndex = 0;
22+
bool m_ResetHistory = true;
2323

2424
RenderTexture m_HistoryTexture;
2525

@@ -198,6 +198,7 @@ public override void OnDisable()
198198

199199
m_HistoryTexture = null;
200200
m_SampleIndex = 0;
201+
ResetHistory();
201202
}
202203
}
203204
}

0 commit comments

Comments
 (0)