experiments with fresnel and shadergraph
[WindSway-HDRP.git] / Library / PackageCache / com.unity.postprocessing@2.1.6 / PostProcessing / Runtime / Attributes / MinMaxAttribute.cs
blobaa5d087d275ab5ed0a8469bd896c16133fd41a7f
1 using System;
3 namespace UnityEngine.Rendering.PostProcessing
5 /// <summary>
6 /// Use this attribute to specify a range between a min and a max value.
7 /// </summary>
8 [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
9 public sealed class MinMaxAttribute : Attribute
11 /// <summary>
12 /// The minimum limit of the user defined range.
13 /// </summary>
14 public readonly float min;
16 /// <summary>
17 /// The maximum limit of the user defined range.
18 /// </summary>
19 public readonly float max;
21 /// <summary>
22 /// Creates a new attribute.
23 /// </summary>
24 /// <param name="min">The minimum limit of the user defined range</param>
25 /// <param name="max">The maximum limit of the user defined range</param>
26 public MinMaxAttribute(float min, float max)
28 this.min = min;
29 this.max = max;