using System; namespace UnityEngine.Rendering.PostProcessing { /// /// Use this attribute to draw a trackball in the inspector. /// [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)] public sealed class TrackballAttribute : Attribute { /// /// Trackball modes. These are used to compute and display pre-filtered trackball vales in /// the inspector. /// public enum Mode { /// /// Don't display pre-filtered values. /// None, /// /// Display pre-filtered lift values. /// Lift, /// /// Display pre-filtered gamma values. /// Gamma, /// /// Display pre-filtered grain values. /// Gain } /// /// The mode used to display pre-filtered values in the inspector. /// public readonly Mode mode; /// /// Creates a new attribute. /// /// A mode used to display pre-filtered values in the inspector public TrackballAttribute(Mode mode) { this.mode = mode; } } }