using System; namespace UnityEngine.Rendering.Universal { /// /// A volume component that holds settings for the Vignette effect. /// [Serializable, VolumeComponentMenu("Post-processing/Vignette")] [SupportedOnRenderPipeline(typeof(UniversalRenderPipelineAsset))] [URPHelpURL("post-processing-vignette")] public sealed class Vignette : VolumeComponent, IPostProcessComponent { /// /// Specifies the color of the vignette. /// [Tooltip("Vignette color.")] public ColorParameter color = new ColorParameter(Color.black, false, false, true); /// /// Sets the center point for the vignette. /// [Tooltip("Sets the vignette center point (screen center is [0.5,0.5]).")] public Vector2Parameter center = new Vector2Parameter(new Vector2(0.5f, 0.5f)); /// /// Controls the strength of the vignette effect. /// [Tooltip("Use the slider to set the strength of the Vignette effect.")] public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f); /// /// Controls the smoothness of the vignette borders. /// [Tooltip("Smoothness of the vignette borders.")] public ClampedFloatParameter smoothness = new ClampedFloatParameter(0.2f, 0.01f, 1f); /// /// Controls how round the vignette is, lower values result in a more square vignette. /// [Tooltip("Should the vignette be perfectly round or be dependent on the current aspect ratio?")] public BoolParameter rounded = new BoolParameter(false); /// public bool IsActive() => intensity.value > 0f; /// [Obsolete("Unused #from(2023.1)", false)] public bool IsTileCompatible() => true; } }