mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-11-14 00:05:35 +01:00
max
ea1d2412b1
AnimationLibraryBook editor setup. AnimationLibrary AnimationData generation and material setup. AnimationBook added support for non animation textures as well. This allows the user for example, to link Albedo maps with animations. MaterialData is now in one component. Note: Only 1/3th of the performance when having 4 swapping texture maps/arrays.
13 lines
316 B
C#
13 lines
316 B
C#
using Unity.Entities;
|
|
using Unity.Mathematics;
|
|
using Unity.Rendering;
|
|
|
|
namespace TAO.VertexAnimation
|
|
{
|
|
[MaterialProperty("_AnimationData", MaterialPropertyFormat.Float4)]
|
|
public struct VA_AnimationDataComponent : IComponentData
|
|
{
|
|
// animationTime, animationIndex, colorIndex, nan.
|
|
public float4 Value;
|
|
}
|
|
} |