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.
28 lines
1.1 KiB
28 lines
1.1 KiB
using System;
|
|
|
|
namespace UnityEngine.Rendering.HighDefinition
|
|
{
|
|
/// <summary>
|
|
/// A volume component that holds settings for the Screen Space Refraction effect.
|
|
/// </summary>
|
|
[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
|
|
};
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
[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);
|
|
}
|
|
}
|