mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-11-14 16:25:32 +01:00
18 lines
287 B
C#
18 lines
287 B
C#
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;
|
|
}
|
|
}
|
|
} |