
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
26 lines
772 B
C#
26 lines
772 B
C#
#if VFX_GRAPH_10_0_0_OR_NEWER
|
|
using System;
|
|
using UnityEditor.ShaderGraph;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace UnityEditor.ShaderGraph
|
|
{
|
|
static class CreateVFXShaderGraph
|
|
{
|
|
[MenuItem("Assets/Create/Shader Graph/VFX Shader Graph", priority = CoreUtils.Sections.section2 + CoreUtils.Priorities.assetsCreateShaderMenuPriority)]
|
|
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
|