post processing
[WindSway-HDRP.git] / Library / PackageCache / com.unity.postprocessing@2.1.6 / PostProcessing / Runtime / Attributes / TrackballAttribute.cs
blobf7c2a3157ad73f4c405bca02d3a5b4c252781d80
1 using System;
3 namespace UnityEngine.Rendering.PostProcessing
5 /// <summary>
6 /// Use this attribute to draw a trackball in the inspector.
7 /// </summary>
8 [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
9 public sealed class TrackballAttribute : Attribute
11 /// <summary>
12 /// Trackball modes. These are used to compute and display pre-filtered trackball vales in
13 /// the inspector.
14 /// </summary>
15 public enum Mode
17 /// <summary>
18 /// Don't display pre-filtered values.
19 /// </summary>
20 None,
22 /// <summary>
23 /// Display pre-filtered lift values.
24 /// </summary>
25 Lift,
27 /// <summary>
28 /// Display pre-filtered gamma values.
29 /// </summary>
30 Gamma,
32 /// <summary>
33 /// Display pre-filtered grain values.
34 /// </summary>
35 Gain
38 /// <summary>
39 /// The mode used to display pre-filtered values in the inspector.
40 /// </summary>
41 public readonly Mode mode;
43 /// <summary>
44 /// Creates a new attribute.
45 /// </summary>
46 /// <param name="mode">A mode used to display pre-filtered values in the inspector</param>
47 public TrackballAttribute(Mode mode)
49 this.mode = mode;