This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments