using System; namespace UnityEngine.Rendering.Universal { /// /// A volume component that holds settings for the Panini Projection effect. /// [Serializable, VolumeComponentMenu("Post-processing/Panini Projection")] [SupportedOnRenderPipeline(typeof(UniversalRenderPipelineAsset))] [URPHelpURL("Post-Processing-Panini-Projection")] public sealed class PaniniProjection : VolumeComponent, IPostProcessComponent { /// /// Controls the panini projection distance. This controls the strength of the distorion. /// [Tooltip("Panini projection distance.")] public ClampedFloatParameter distance = new ClampedFloatParameter(0f, 0f, 1f); /// /// Controls how much cropping HDRP applies to the screen with the panini projection effect. A value of 1 crops the distortion to the edge of the screen. /// [Tooltip("Panini projection crop to fit.")] public ClampedFloatParameter cropToFit = new ClampedFloatParameter(1f, 0f, 1f); /// public bool IsActive() => distance.value > 0f; /// [Obsolete("Unused #from(2023.1)", false)] public bool IsTileCompatible() => false; } }