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
17
17
public PostProcessingProfile profile ;
18
18
19
19
public Func < Vector2 , Matrix4x4 > jitteredMatrixFunc ;
20
- Matrix4x4 nonJitteredProjectionMatrix ;
21
20
22
21
// Internal helpers
23
22
Dictionary < Type , KeyValuePair < CameraEvent , CommandBuffer > > m_CommandBuffers ;
@@ -155,10 +154,7 @@ void OnPreCull()
155
154
156
155
// Temporal antialiasing jittering, needs to happen before culling
157
156
if ( ! m_RenderingInSceneView && m_Taa . active && ! profile . debugViews . willInterrupt )
158
- {
159
- nonJitteredProjectionMatrix = m_Context . camera . projectionMatrix ;
160
157
m_Taa . SetProjectionMatrix ( jitteredMatrixFunc ) ;
161
- }
162
158
}
163
159
164
160
void OnPreRender ( )
@@ -182,7 +178,7 @@ void OnPostRender()
182
178
return ;
183
179
184
180
if ( ! m_RenderingInSceneView && m_Taa . active && ! profile . debugViews . willInterrupt )
185
- m_Context . camera . projectionMatrix = nonJitteredProjectionMatrix ;
181
+ m_Context . camera . ResetProjectionMatrix ( ) ;
186
182
}
187
183
188
184
// Classic render target pipeline for RT-based effects
You can’t perform that action at this time.
0 commit comments