experiments with fresnel and shadergraph
[WindSway-HDRP.git] / Library / PackageCache / com.unity.postprocessing@2.1.6 / PostProcessing / Runtime / Attributes / MinAttribute.cs
blobf8d893c3389faa7b13ecc067c38a1a9ac7211363
1 using System;
3 namespace UnityEngine.Rendering.PostProcessing
5 /// <summary>
6 /// Use this attribute to clamp floating point values to a minimum value in the inspector.
7 /// </summary>
8 [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
9 public sealed class MinAttribute : Attribute
11 /// <summary>
12 /// The minimum value the field will be clamped to.
13 /// </summary>
14 public readonly float min;
16 /// <summary>
17 /// Creates a new attribute.
18 /// </summary>
19 /// <param name="max">The minimum value the field will be clamped to</param>
20 public MinAttribute(float min)
22 this.min = min;