@@ -120,10 +120,6 @@ public enum Antialiasing
120120 [ SerializeField ]
121121 PostProcessResources m_Resources ;
122122
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-
127123 // UI states
128124#if UNITY_2017_1_OR_NEWER
129125 [ UnityEngine . Scripting . Preserve ]
@@ -425,13 +421,10 @@ void OnPreCull()
425421 // when ResetProjectionMatrix() is called and will break transparent rendering if TAA
426422 // is switched off and the FOV or any other camera property changes.
427423
428- if ( m_CurrentContext . IsTemporalAntialiasingActive ( ) )
429- {
430424#if UNITY_2018_2_OR_NEWER
431425 if ( ! m_Camera . usePhysicalProperties )
432426#endif
433427 m_Camera . ResetProjectionMatrix ( ) ;
434- }
435428 m_Camera . nonJitteredProjectionMatrix = m_Camera . projectionMatrix ;
436429
437430#if ENABLE_VR
@@ -605,7 +598,15 @@ void BuildCommandBuffers()
605598 if ( RequiresInitialBlit ( m_Camera , context ) || forceNanKillPass )
606599 {
607600 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+ }
609610 m_LegacyCmdBuffer . BuiltinBlit ( cameraTarget , tempRt , RuntimeUtilities . copyStdMaterial , stopNaNPropagation ? 1 : 0 ) ;
610611 if ( ! m_NaNKilled )
611612 m_NaNKilled = stopNaNPropagation ;
@@ -811,13 +812,7 @@ public bool HasActiveEffects(PostProcessEvent evt, PostProcessRenderContext cont
811812
812813 void SetupContext ( PostProcessRenderContext context )
813814 {
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 ) ;
821816
822817 m_IsRenderingInSceneView = context . camera . cameraType == CameraType . SceneView ;
823818 context . isSceneView = m_IsRenderingInSceneView ;
0 commit comments