HeavenStudioPlus/Assets/X-PostProcessing/Utility/ColorWheelAttribute.cs
wookywok 92962fef26
Retro VFX! (also airboarder works now) (#780)
* Super Retro VFX!

* Updated Screen Jump default

* also airboarder works now

---------

Co-authored-by: minenice55 <star.elementa@gmail.com>
2024-03-11 21:21:51 +00:00

57 lines
No EOL
1.4 KiB
C#

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