|
|
@ -173,6 +173,9 @@ namespace UnityEngine.Rendering.PostProcessing |
|
|
[SerializeField] |
|
|
[SerializeField] |
|
|
List<SerializedBundleRef> m_BeforeTransparentBundles; |
|
|
List<SerializedBundleRef> m_BeforeTransparentBundles; |
|
|
|
|
|
|
|
|
|
|
|
[SerializeField] |
|
|
|
|
|
List<SerializedBundleRef> m_BeforeUpscalingBundles; |
|
|
|
|
|
|
|
|
[SerializeField] |
|
|
[SerializeField] |
|
|
List<SerializedBundleRef> m_BeforeStackBundles; |
|
|
List<SerializedBundleRef> m_BeforeStackBundles; |
|
|
|
|
|
|
|
|
@ -314,6 +317,7 @@ namespace UnityEngine.Rendering.PostProcessing |
|
|
|
|
|
|
|
|
// Create these lists only once, the serialization system will take over after that
|
|
|
// Create these lists only once, the serialization system will take over after that
|
|
|
RuntimeUtilities.CreateIfNull(ref m_BeforeTransparentBundles); |
|
|
RuntimeUtilities.CreateIfNull(ref m_BeforeTransparentBundles); |
|
|
|
|
|
RuntimeUtilities.CreateIfNull(ref m_BeforeUpscalingBundles); |
|
|
RuntimeUtilities.CreateIfNull(ref m_BeforeStackBundles); |
|
|
RuntimeUtilities.CreateIfNull(ref m_BeforeStackBundles); |
|
|
RuntimeUtilities.CreateIfNull(ref m_AfterStackBundles); |
|
|
RuntimeUtilities.CreateIfNull(ref m_AfterStackBundles); |
|
|
|
|
|
|
|
|
@ -329,6 +333,7 @@ namespace UnityEngine.Rendering.PostProcessing |
|
|
|
|
|
|
|
|
// Update sorted lists with newly added or removed effects in the assemblies
|
|
|
// Update sorted lists with newly added or removed effects in the assemblies
|
|
|
UpdateBundleSortList(m_BeforeTransparentBundles, PostProcessEvent.BeforeTransparent); |
|
|
UpdateBundleSortList(m_BeforeTransparentBundles, PostProcessEvent.BeforeTransparent); |
|
|
|
|
|
UpdateBundleSortList(m_BeforeUpscalingBundles, PostProcessEvent.BeforeUpscaling); |
|
|
UpdateBundleSortList(m_BeforeStackBundles, PostProcessEvent.BeforeStack); |
|
|
UpdateBundleSortList(m_BeforeStackBundles, PostProcessEvent.BeforeStack); |
|
|
UpdateBundleSortList(m_AfterStackBundles, PostProcessEvent.AfterStack); |
|
|
UpdateBundleSortList(m_AfterStackBundles, PostProcessEvent.AfterStack); |
|
|
|
|
|
|
|
|
@ -336,6 +341,7 @@ namespace UnityEngine.Rendering.PostProcessing |
|
|
sortedBundles = new Dictionary<PostProcessEvent, List<SerializedBundleRef>>(new PostProcessEventComparer()) |
|
|
sortedBundles = new Dictionary<PostProcessEvent, List<SerializedBundleRef>>(new PostProcessEventComparer()) |
|
|
{ |
|
|
{ |
|
|
{ PostProcessEvent.BeforeTransparent, m_BeforeTransparentBundles }, |
|
|
{ PostProcessEvent.BeforeTransparent, m_BeforeTransparentBundles }, |
|
|
|
|
|
{ PostProcessEvent.BeforeUpscaling, m_BeforeUpscalingBundles }, |
|
|
{ PostProcessEvent.BeforeStack, m_BeforeStackBundles }, |
|
|
{ PostProcessEvent.BeforeStack, m_BeforeStackBundles }, |
|
|
{ PostProcessEvent.AfterStack, m_AfterStackBundles } |
|
|
{ PostProcessEvent.AfterStack, m_AfterStackBundles } |
|
|
}; |
|
|
}; |
|
|
@ -1055,6 +1061,10 @@ namespace UnityEngine.Rendering.PostProcessing |
|
|
} |
|
|
} |
|
|
context.source = lastTarget; |
|
|
context.source = lastTarget; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Right before upscaling & temporal anti-aliasing
|
|
|
|
|
|
if (HasActiveEffects(PostProcessEvent.BeforeUpscaling, context)) |
|
|
|
|
|
lastTarget = RenderInjectionPoint(PostProcessEvent.BeforeUpscaling, context, "BeforeUpscaling", lastTarget); |
|
|
|
|
|
|
|
|
// Do temporal anti-aliasing first
|
|
|
// Do temporal anti-aliasing first
|
|
|
if (context.IsTemporalAntialiasingActive()) |
|
|
if (context.IsTemporalAntialiasingActive()) |
|
|
|