Singularity/Library/PackageCache/com.unity.render-pipelines..../Runtime/Overrides/WhiteBalance.cs

19 lines
747 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
using System;
namespace UnityEngine.Rendering.Universal
{
[Serializable, VolumeComponentMenuForRenderPipeline("Post-processing/White Balance", typeof(UniversalRenderPipeline))]
public sealed class WhiteBalance : VolumeComponent, IPostProcessComponent
{
[Tooltip("Sets the white balance to a custom color temperature.")]
public ClampedFloatParameter temperature = new ClampedFloatParameter(0f, -100, 100f);
[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;
public bool IsTileCompatible() => true;
}
}