using System;
namespace UnityEngine.Rendering.Universal
{
///
/// A volume component that holds settings for the White Balance effect.
///
[Serializable, VolumeComponentMenu("Post-processing/White Balance")]
[SupportedOnRenderPipeline(typeof(UniversalRenderPipelineAsset))]
[URPHelpURL("Post-Processing-White-Balance")]
public sealed class WhiteBalance : VolumeComponent, IPostProcessComponent
{
///
/// Controls the color temperature URP uses for white balancing.
///
[Tooltip("Sets the white balance to a custom color temperature.")]
public ClampedFloatParameter temperature = new ClampedFloatParameter(0f, -100, 100f);
///
/// Controls the white balance color to compensate for a green or magenta tint.
///
[Tooltip("Sets the white balance to compensate for a green or magenta tint.")]
public ClampedFloatParameter tint = new ClampedFloatParameter(0f, -100, 100f);
///
public bool IsActive() => temperature.value != 0f || tint.value != 0f;
///
[Obsolete("Unused #from(2023.1)", false)]
public bool IsTileCompatible() => true;
}
}