SplitToning.cs 821 B

123456789101112131415161718192021
  1. using System;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. [Serializable, VolumeComponentMenu("Post-processing/Split Toning")]
  5. public sealed class SplitToning : VolumeComponent, IPostProcessComponent
  6. {
  7. [Tooltip("The color to use for shadows.")]
  8. public ColorParameter shadows = new ColorParameter(Color.grey, false, false, true);
  9. [Tooltip("The color to use for highlights.")]
  10. public ColorParameter highlights = new ColorParameter(Color.grey, false, false, true);
  11. [Tooltip("Balance between the colors in the highlights and shadows.")]
  12. public ClampedFloatParameter balance = new ClampedFloatParameter(0f, -100f, 100f);
  13. public bool IsActive() => shadows != Color.grey || highlights != Color.grey;
  14. public bool IsTileCompatible() => true;
  15. }
  16. }