mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-11-14 16:25:32 +01:00
28 lines
748 B
C#
28 lines
748 B
C#
|
using Unity.Entities;
|
|||
|
using Unity.Mathematics;
|
|||
|
using Unity.Rendering;
|
|||
|
|
|||
|
namespace TAO.VertexAnimation
|
|||
|
{
|
|||
|
[MaterialProperty("_AnimationDataOne")] //, MaterialPropertyFormat.Float4
|
|||
|
public struct FirstAnimationDataComponent : IComponentData
|
|||
|
{
|
|||
|
// animationTime, animationIndex, colorIndex, nan.
|
|||
|
public float4 Value;
|
|||
|
}
|
|||
|
|
|||
|
[MaterialProperty("_AnimationDataTwo")] //, MaterialPropertyFormat.Float4
|
|||
|
public struct SecondAnimationDataComponent : IComponentData
|
|||
|
{
|
|||
|
// animationTime, animationIndex, colorIndex, nan.
|
|||
|
public float4 Value;
|
|||
|
}
|
|||
|
|
|||
|
[MaterialProperty("_AnimationDataBlend")] //, MaterialPropertyFormat.Float4
|
|||
|
public struct BlendingAnimationDataComponent : IComponentData
|
|||
|
{
|
|||
|
// animationTime, animationIndex, colorIndex, nan.
|
|||
|
public float Value;
|
|||
|
}
|
|||
|
|
|||
|
}
|