Unity-Technologies / Animation-Instancing

This technique is designed to instance Characters(SkinnedMeshRender).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

动作融合是支持的??

lybmccree opened this issue · comments

shader里面写了插值,看上去是做这个么?
half4x4 localToWorldMatrixPreAni = loadMatFromTexture(preAniFrame, bone.x);
half4 localPosPreAni = mul(v.vertex, localToWorldMatrixPreAni);
localPos = lerp(localPos, localPosPreAni, (1.0f - progress) * (preAniFrame < 0.0f));

然后animator也有设置2个动作之间的过渡。使用crossfade后,跟直接playanimation没差异
不知道是不是我自己这边设置不对,比较迷惑

commented

Hi, transition是支持的。
如果你的case有问题,可以提供一个demo吗?

(preAniFrame < 0.0f)); 2019一直返回不对 要用step