Firstborn/Library/PackageCache/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/FastApproximateAntialiasing.cs

29 lines
1.3 KiB
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using System;
using UnityEngine.Serialization;
namespace UnityEngine.Rendering.PostProcessing
{
/// <summary>
/// This class holds settings for the Fast Approximate Anti-aliasing (FXAA) effect.
/// </summary>
[UnityEngine.Scripting.Preserve]
[Serializable]
public sealed class FastApproximateAntialiasing
{
/// <summary>
/// If <c>true</c>, it will use a slightly lower quality but faster variant of FXAA. Highly
/// recommended on mobile platforms.
/// </summary>
[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;
/// <summary>
/// Set this to <c>true</c> 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.
/// </summary>
[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;
}
}