Skip to content

Commit

Permalink
fix jittery output on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
but0n committed Apr 3, 2021
1 parent 4795aa0 commit 41cea58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/TemporalReprojection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ void Resolve(RenderTexture source, RenderTexture destination)
mrt[0] = reprojectionBuffer[eyeIndex, indexWrite].colorBuffer;
mrt[1] = destination.colorBuffer;

reprojectionBuffer[eyeIndex, indexWrite].DiscardContents();
Graphics.SetRenderTarget(mrt, source.depthBuffer);
reprojectionMaterial.SetPass(0);
reprojectionBuffer[eyeIndex, indexWrite].DiscardContents();

DrawFullscreenQuad();

Expand Down

0 comments on commit 41cea58

Please sign in to comment.