using System; using UnityEngine.Serialization; namespace UnityEngine.Rendering.PostProcessing { /// /// This class holds settings for the Fast Approximate Anti-aliasing (FXAA) effect. /// [UnityEngine.Scripting.Preserve] [Serializable] public sealed class FastApproximateAntialiasing { /// /// If true, it will use a slightly lower quality but faster variant of FXAA. Highly /// recommended on mobile platforms. /// [FormerlySerializedAs("mobileOptimized")] [Tooltip("Boost performances by lowering the effect quality. This setting is meant to be used on mobile and other low-end platforms but can also provide a nice performance boost on desktops and consoles.")] public bool fastMode = false; /// /// Set this to true if you need to keep the alpha channel untouched. Else it will /// use this channel to store internal data used to speed up and improve visual quality. /// [Tooltip("Keep alpha channel. This will slightly lower the effect quality but allows rendering against a transparent background.\nThis setting has no effect if the camera render target has no alpha channel.")] public bool keepAlpha = false; } }