UnityGame/Library/PackageCache/com.unity.render-pipelines.universal/Runtime/Overrides/ChromaticAberration.cs

27 lines
990 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
using System;
namespace UnityEngine.Rendering.Universal
{
/// <summary>
/// A volume component that holds settings for the Chromatic Aberration effect.
/// </summary>
[Serializable, VolumeComponentMenu("Post-processing/Chromatic Aberration")]
[SupportedOnRenderPipeline(typeof(UniversalRenderPipelineAsset))]
[URPHelpURL("post-processing-chromatic-aberration")]
public sealed class ChromaticAberration : VolumeComponent, IPostProcessComponent
{
/// <summary>
/// Controls the strength of the chromatic aberration effect.
/// </summary>
[Tooltip("Use the slider to set the strength of the Chromatic Aberration effect.")]
public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f);
/// <inheritdoc/>
public bool IsActive() => intensity.value > 0f;
/// <inheritdoc/>
[Obsolete("Unused #from(2023.1)", false)]
public bool IsTileCompatible() => false;
}
}