FastApproximateAntialiasing.cs 1.2 KB

123456789101112131415161718192021222324252627
  1. using System;
  2. using UnityEngine.Serialization;
  3. namespace UnityEngine.Rendering.PostProcessing
  4. {
  5. /// <summary>
  6. /// This class holds settings for the Fast Approximate Anti-aliasing (FXAA) effect.
  7. /// </summary>
  8. [Serializable]
  9. public sealed class FastApproximateAntialiasing
  10. {
  11. /// <summary>
  12. /// If <c>true</c>, it will use a slightly lower quality but faster variant of FXAA. Highly
  13. /// recommended on mobile platforms.
  14. /// </summary>
  15. [FormerlySerializedAs("mobileOptimized")]
  16. [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.")]
  17. public bool fastMode = false;
  18. /// <summary>
  19. /// Set this to <c>true</c> if you need to keep the alpha channel untouched. Else it will
  20. /// use this channel to store internal data used to speed up and improve visual quality.
  21. /// </summary>
  22. [Tooltip("Keep alpha channel. This will slightly lower the effect quality but allows rendering against a transparent background.")]
  23. public bool keepAlpha = false;
  24. }
  25. }