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

Commit 9bbdf47

Browse files
committed
Fix #103
1 parent fab28e3 commit 9bbdf47

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

PostProcessing/Runtime/PostProcessingBehaviour.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public class PostProcessingBehaviour : MonoBehaviour
1717
public PostProcessingProfile profile;
1818

1919
public Func<Vector2, Matrix4x4> jitteredMatrixFunc;
20-
Matrix4x4 nonJitteredProjectionMatrix;
2120

2221
// Internal helpers
2322
Dictionary<Type, KeyValuePair<CameraEvent, CommandBuffer>> m_CommandBuffers;
@@ -155,10 +154,7 @@ void OnPreCull()
155154

156155
// Temporal antialiasing jittering, needs to happen before culling
157156
if (!m_RenderingInSceneView && m_Taa.active && !profile.debugViews.willInterrupt)
158-
{
159-
nonJitteredProjectionMatrix = m_Context.camera.projectionMatrix;
160157
m_Taa.SetProjectionMatrix(jitteredMatrixFunc);
161-
}
162158
}
163159

164160
void OnPreRender()
@@ -182,7 +178,7 @@ void OnPostRender()
182178
return;
183179

184180
if (!m_RenderingInSceneView && m_Taa.active && !profile.debugViews.willInterrupt)
185-
m_Context.camera.projectionMatrix = nonJitteredProjectionMatrix;
181+
m_Context.camera.ResetProjectionMatrix();
186182
}
187183

188184
// Classic render target pipeline for RT-based effects

0 commit comments

Comments
 (0)