mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-11-09 22:32:55 +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;
|
|
}
|
|
}
|
|
} |