mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-11-12 23:45:31 +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;
|
||
|
}
|
||
|
}
|
||
|
}
|