VertexAnimation/Runtime/Scripts/ModelBaker/AnimationMaterial.cs

18 lines
287 B
C#
Raw Normal View History

using UnityEngine;
namespace TAO.VertexAnimation
{
public static class AnimationMaterial
{
public static Material Create(string name, Shader shader)
{
Material material = new Material(shader)
{
name = name,
enableInstancing = true
};
return material;
}
}
}