浏览代码

Fixes to noise nodes

/main
Matt Dean 7 年前
当前提交
7017122a
共有 2 个文件被更改,包括 9 次插入9 次删除
  1. 8
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Procedural/Noise/NoiseNode.cs
  2. 10
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Procedural/Noise/VoronoiNoise.cs

8
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Procedural/Noise/NoiseNode.cs


namespace UnityEditor.ShaderGraph
{
[Title("Procedural", "Noise")]
[Title("Procedural", "Noise", "Simple Noise")]
name = "Noise";
name = "Simple Noise";
return GetType().GetMethod("Unity_Noise", BindingFlags.Static | BindingFlags.NonPublic);
return GetType().GetMethod("Unity_SimpleNoise", BindingFlags.Static | BindingFlags.NonPublic);
static string Unity_Noise(
static string Unity_SimpleNoise(
[Slot(0, Binding.MeshUV0)] Vector2 UV,
[Slot(1, Binding.None, 500f, 500f, 500f, 500f)] Vector1 Scale,
[Slot(2, Binding.None)] out Vector1 Out)

10
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Procedural/Noise/VoronoiNoise.cs


namespace UnityEditor.ShaderGraph
{
[Title("Procedural", "Voronoi")]
public class VoronoiNoiseNode : CodeFunctionNode
[Title("Procedural", "Noise", "Voronoi")]
public class VoronoiNode : CodeFunctionNode
public VoronoiNoiseNode()
public VoronoiNode()
{
name = "Voronoi";
}

return GetType().GetMethod("Unity_VoronoiNoise", BindingFlags.Static | BindingFlags.NonPublic);
return GetType().GetMethod("Unity_Voronoi", BindingFlags.Static | BindingFlags.NonPublic);
static string Unity_VoronoiNoise(
static string Unity_Voronoi(
[Slot(0, Binding.MeshUV0)] Vector2 UV,
[Slot(1, Binding.None, 2.0f, 0, 0, 0)] Vector1 AngleOffset,
[Slot(2, Binding.None, 5.0f, 5.0f, 5.0f, 5.0f)] Vector1 CellDensity,

正在加载...
取消
保存