add live face shadow

This commit is contained in:
CroakFang
2023-09-03 21:42:49 +08:00
parent 12dee318bc
commit 0fc1b8672a
2 changed files with 17 additions and 0 deletions
@@ -976,6 +976,15 @@ namespace Gallop
var tearytype = info.tearyType;
StaticTearMorph.BindProperties.ForEach(p => p.Value = tearytype);
var shaderEnable = ((int)info.attribute & LiveTimelineKeyFacialEffectData.kAttrFaceShadowVisible) > 0;
if (shaderEnable)
{
ShadeMorph.BindProperties[0].Value = Mathf.MoveTowards(ShadeMorph.BindProperties[0].Value, 1, Time.deltaTime * 2);
}
else
{
ShadeMorph.BindProperties[0].Value = 0;
}
ChangeMorphEffect();
}
@@ -131,6 +131,14 @@ namespace Gallop.Live.Cutt
public int tearfulType;
public TeardropConfig[] teardropConfigs;
public int mangameIndex;
public const int kAttrCheek = 65536;
public const int kAttrTeary = 131072;
public const int kAttrTearful = 262144;
public const int kAttrTeardrop = 524288;
public const int kAttrMangame = 2097152;
public const int kAttrFaceShadow = 4194304;
public const int kAttrFaceShadowVisible = 8388608;
}
[System.Serializable]