Files
ft/Client/Assets/Scripts/ZZVideo/ZZVideoChromaKeyData.cs
2026-06-29 21:18:33 +08:00

19 lines
640 B
C#

/*----------------------------------------------------------------
// ChromaKey 参数数据(随场景/预制体保存),供 ZZVideoRawImageDecoder 使用
//----------------------------------------------------------------*/
using UnityEngine;
/// <summary>
/// Leviathan YUV420P_ChromaKey 着色器参数
/// </summary>
[System.Serializable]
public class ZZVideoChromaKeyData
{
public Color keyColor = Color.green;
[Range(0f, 1f)] public float cutoff = 0.2f;
[Range(0f, 1f)] public float colorFeathering = 0.33f;
[Range(0f, 1f)] public float maskFeathering = 1f;
[Range(0f, 1f)] public float sharpening = 0.5f;
}