ChromaticAberration.cs 575 B

123456789101112131415
  1. using System;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. [Serializable, VolumeComponentMenuForRenderPipeline("Post-processing/Chromatic Aberration", typeof(UniversalRenderPipeline))]
  5. public sealed class ChromaticAberration : VolumeComponent, IPostProcessComponent
  6. {
  7. [Tooltip("Use the slider to set the strength of the Chromatic Aberration effect.")]
  8. public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f);
  9. public bool IsActive() => intensity.value > 0f;
  10. public bool IsTileCompatible() => false;
  11. }
  12. }