using UnityEngine;
namespace EPOOutline
{
public partial class Outlinable
{
///
/// Outline parameters and settings for the rendering.
///
[System.Serializable]
public class OutlineProperties
{
#pragma warning disable CS0649
[SerializeField]
private bool enabled = true;
///
/// Is enabled and should be rendered.
///
public bool Enabled
{
get => enabled;
set => enabled = value;
}
[SerializeField]
private Color color = Color.yellow;
///
/// Color of the outline.
///
public Color Color
{
get => color;
set => color = value;
}
[SerializeField]
[Range(0.0f, 1.0f)]
private float dilateShift = 1.0f;
///
/// Dilate shift. The larger, the more shifted dilate will be.
///
public float DilateShift
{
get => dilateShift;
set => dilateShift = value;
}
[SerializeField]
[Range(0.0f, 1.0f)]
private float blurShift = 1.0f;
///
/// Blur shift. The larger, the more shifted blur will be.
///
public float BlurShift
{
get => blurShift;
set => blurShift = value;
}
[SerializeField, SerializedPassInfo("Fill style", "Hidden/EPO/Fill/")]
private SerializedPass fillPass = new SerializedPass();
///
/// The used for rendering.
///
public SerializedPass FillPass => fillPass;
#pragma warning restore CS0649
}
}
}