@@ -120,10 +120,6 @@ public enum Antialiasing
120
120
[ SerializeField ]
121
121
PostProcessResources m_Resources ;
122
122
123
- // Some juggling needed to track down reference to the resource asset when loaded from asset
124
- // bundle (guid conflict)
125
- PostProcessResources m_OldResources ;
126
-
127
123
// UI states
128
124
#if UNITY_2017_1_OR_NEWER
129
125
[ UnityEngine . Scripting . Preserve ]
@@ -425,13 +421,10 @@ void OnPreCull()
425
421
// when ResetProjectionMatrix() is called and will break transparent rendering if TAA
426
422
// is switched off and the FOV or any other camera property changes.
427
423
428
- if ( m_CurrentContext . IsTemporalAntialiasingActive ( ) )
429
- {
430
424
#if UNITY_2018_2_OR_NEWER
431
425
if ( ! m_Camera . usePhysicalProperties )
432
426
#endif
433
427
m_Camera . ResetProjectionMatrix ( ) ;
434
- }
435
428
m_Camera . nonJitteredProjectionMatrix = m_Camera . projectionMatrix ;
436
429
437
430
#if ENABLE_VR
@@ -605,7 +598,15 @@ void BuildCommandBuffers()
605
598
if ( RequiresInitialBlit ( m_Camera , context ) || forceNanKillPass )
606
599
{
607
600
tempRt = m_TargetPool . Get ( ) ;
608
- context . GetScreenSpaceTemporaryRT ( m_LegacyCmdBuffer , tempRt , 0 , sourceFormat , RenderTextureReadWrite . sRGB ) ;
601
+ // https://github.com/Unity-Technologies/PostProcessing/issues/844
602
+ if ( ! context . stereoActive )
603
+ {
604
+ context . GetScreenSpaceTemporaryRT ( m_LegacyCmdBuffer , tempRt , 0 , sourceFormat , RenderTextureReadWrite . sRGB ) ;
605
+ }
606
+ else
607
+ {
608
+ context . GetScreenSpaceTemporaryRT ( m_LegacyCmdBuffer , tempRt , 0 , sourceFormat , RenderTextureReadWrite . sRGB , FilterMode . Bilinear , context . width * 2 , context . height ) ;
609
+ }
609
610
m_LegacyCmdBuffer . BuiltinBlit ( cameraTarget , tempRt , RuntimeUtilities . copyStdMaterial , stopNaNPropagation ? 1 : 0 ) ;
610
611
if ( ! m_NaNKilled )
611
612
m_NaNKilled = stopNaNPropagation ;
@@ -811,13 +812,7 @@ public bool HasActiveEffects(PostProcessEvent evt, PostProcessRenderContext cont
811
812
812
813
void SetupContext ( PostProcessRenderContext context )
813
814
{
814
- // Juggling required when a scene with post processing is loaded from an asset bundle
815
- // See #1148230
816
- if ( m_OldResources != m_Resources )
817
- {
818
- RuntimeUtilities . UpdateResources ( m_Resources ) ;
819
- m_OldResources = m_Resources ;
820
- }
815
+ RuntimeUtilities . UpdateResources ( m_Resources ) ;
821
816
822
817
m_IsRenderingInSceneView = context . camera . cameraType == CameraType . SceneView ;
823
818
context . isSceneView = m_IsRenderingInSceneView ;
0 commit comments