WhiteBalance.cs 697 B

123456789101112131415161718
  1. using System;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. [Serializable, VolumeComponentMenu("Post-processing/White Balance")]
  5. public sealed class WhiteBalance : VolumeComponent, IPostProcessComponent
  6. {
  7. [Tooltip("Sets the white balance to a custom color temperature.")]
  8. public ClampedFloatParameter temperature = new ClampedFloatParameter(0f, -100, 100f);
  9. [Tooltip("Sets the white balance to compensate for a green or magenta tint.")]
  10. public ClampedFloatParameter tint = new ClampedFloatParameter(0f, -100, 100f);
  11. public bool IsActive() => temperature.value != 0f || tint.value != 0f;
  12. public bool IsTileCompatible() => true;
  13. }
  14. }