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 +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,13 @@ void OnPreCull()
251
251
var context = m_CurrentContext ;
252
252
var sourceFormat = m_Camera . allowHDR ? RenderTextureFormat . DefaultHDR : RenderTextureFormat . Default ;
253
253
254
+ // Resets the projection matrix from previous frame in case TAA was enabled.
255
+ // We also need to force reset the non-jittered projection matrix here as it's not done
256
+ // when ResetProjectionMatrix() is called and will break transparent rendering if TAA
257
+ // is switched off and the FOV or any other camera property changes.
258
+ m_Camera . ResetProjectionMatrix ( ) ;
259
+ m_Camera . nonJitteredProjectionMatrix = m_Camera . projectionMatrix ;
260
+
254
261
context . Reset ( ) ;
255
262
context . camera = m_Camera ;
256
263
context . sourceFormat = sourceFormat ;
@@ -356,16 +363,6 @@ void OnPreCull()
356
363
m_LegacyCmdBuffer . ReleaseTemporaryRT ( tempRt ) ;
357
364
}
358
365
359
- void OnPostRender ( )
360
- {
361
- // Unused in scriptable render pipelines
362
- if ( RuntimeUtilities . scriptableRenderPipelineActive )
363
- return ;
364
-
365
- if ( m_CurrentContext . IsTemporalAntialiasingActive ( ) )
366
- m_Camera . ResetProjectionMatrix ( ) ;
367
- }
368
-
369
366
PostProcessBundle GetBundle < T > ( )
370
367
where T : PostProcessEffectSettings
371
368
{
You can’t perform that action at this time.
0 commit comments