using System; namespace UnityEngine.Rendering.HighDefinition { /// /// A volume component that holds settings for the Screen Space Refraction effect. /// [Serializable, VolumeComponentMenu("Lighting/Screen Space Refraction")] [SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))] [HDRPHelpURL("Override-Screen-Space-Refraction")] public class ScreenSpaceRefraction : VolumeComponent { internal enum RefractionModel { None = 0, Planar = 1, Sphere = 2, Thin = 3 }; /// /// Controls the distance at which HDRP fades out Screen Space Refraction near the edge of the screen. A value near 0 indicates a small fade distance at the edges, /// while increasing the value towards one will start the fade closer to the center of the screen. /// [Tooltip("Controls the distance at which HDRP fades out SSR near the edge of the screen.")] public ClampedFloatParameter screenFadeDistance = new ClampedFloatParameter(0.1f, 0.001f, 1.0f); } }