No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChromaticAberration.cs 990B

1234567891011121314151617181920212223242526
  1. using System;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. /// <summary>
  5. /// A volume component that holds settings for the Chromatic Aberration effect.
  6. /// </summary>
  7. [Serializable, VolumeComponentMenu("Post-processing/Chromatic Aberration")]
  8. [SupportedOnRenderPipeline(typeof(UniversalRenderPipelineAsset))]
  9. [URPHelpURL("post-processing-chromatic-aberration")]
  10. public sealed class ChromaticAberration : VolumeComponent, IPostProcessComponent
  11. {
  12. /// <summary>
  13. /// Controls the strength of the chromatic aberration effect.
  14. /// </summary>
  15. [Tooltip("Use the slider to set the strength of the Chromatic Aberration effect.")]
  16. public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f);
  17. /// <inheritdoc/>
  18. public bool IsActive() => intensity.value > 0f;
  19. /// <inheritdoc/>
  20. [Obsolete("Unused #from(2023.1)", false)]
  21. public bool IsTileCompatible() => false;
  22. }
  23. }