2021-09-09 20:42:29 -04:00

30 lines
1.0 KiB
C#

using System;
namespace UnityEngine.Rendering.HighDefinition
{
/// <summary>
/// A volume component that holds settings for the Micro Shadows effect.
/// </summary>
[Serializable, VolumeComponentMenu("Shadowing/Micro Shadows")]
[HelpURL(Documentation.baseURL + Documentation.version + Documentation.subURL + "Override-Micro-Shadows" + Documentation.endURL)]
public class MicroShadowing : VolumeComponent
{
/// <summary>
/// When enabled, HDRP processes Micro Shadows for this Volume.
/// </summary>
[Tooltip("Enables micro shadows for directional lights.")]
public BoolParameter enable = new BoolParameter(false);
/// <summary>
/// Controls the opacity of the micro shadows.
/// </summary>
[Tooltip("Controls the opacity of the micro shadows.")]
public ClampedFloatParameter opacity = new ClampedFloatParameter(1.0f, 0.0f, 1.0f);
MicroShadowing()
{
displayName = "Micro Shadows";
}
}
}