【add】主入口初始化

This commit is contained in:
2025-11-03 11:25:01 +08:00
commit 87e659271b
1903 changed files with 220684 additions and 0 deletions

View File

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