This commit is contained in:
2021-06-13 10:28:03 +02:00
parent eb70603c85
commit df2d24cbd3
7487 changed files with 943244 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#if VFX_GRAPH_10_0_0_OR_NEWER
using System;
using UnityEditor.ShaderGraph;
namespace UnityEditor.ShaderGraph
{
static class CreateVFXShaderGraph
{
[MenuItem("Assets/Create/Shader/VFX Shader Graph", false, 208)]
public static void CreateVFXGraph()
{
var target = (VFXTarget)Activator.CreateInstance(typeof(VFXTarget));
var blockDescriptors = new[]
{
BlockFields.SurfaceDescription.BaseColor,
BlockFields.SurfaceDescription.Alpha,
};
GraphUtil.CreateNewGraphWithOutputs(new[] {target}, blockDescriptors);
}
}
}
#endif