post processing
[WindSway-HDRP.git] / Library / PackageCache / com.unity.postprocessing@2.1.6 / PostProcessing / Runtime / Effects / FastApproximateAntialiasing.cs
blob3e76bfa4627da9c8e205ed0ad55f9eea2e15a559
1 using System;
2 using UnityEngine.Serialization;
4 namespace UnityEngine.Rendering.PostProcessing
6 /// <summary>
7 /// This class holds settings for the Fast Approximate Anti-aliasing (FXAA) effect.
8 /// </summary>
9 #if UNITY_2017_1_OR_NEWER
10 [UnityEngine.Scripting.Preserve]
11 #endif
12 [Serializable]
13 public sealed class FastApproximateAntialiasing
15 /// <summary>
16 /// If <c>true</c>, it will use a slightly lower quality but faster variant of FXAA. Highly
17 /// recommended on mobile platforms.
18 /// </summary>
19 [FormerlySerializedAs("mobileOptimized")]
20 [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.")]
21 public bool fastMode = false;
23 /// <summary>
24 /// Set this to <c>true</c> if you need to keep the alpha channel untouched. Else it will
25 /// use this channel to store internal data used to speed up and improve visual quality.
26 /// </summary>
27 [Tooltip("Keep alpha channel. This will slightly lower the effect quality but allows rendering against a transparent background.")]
28 public bool keepAlpha = false;