浏览代码

Merge pull request #5 from stramit/issues-fix

Issues fix
/main
GitHub 8 年前
当前提交
0ef45c8c
共有 34 个文件被更改,包括 1117 次插入441 次删除
  1. 2
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/NodeDrawer.cs
  2. 2
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Manipulators/Clicker.cs
  3. 4
      MaterialGraphProject/Assets/NewUI/Editor/Decorators/GridBackground.cs
  4. 5
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Circle.cs
  5. 5
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/InvisibleBorderContainer.cs
  6. 8
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/MiniMap.cs
  7. 20
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/NodesContentView.cs
  8. 18
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/Presenters/NodesContentViewPresenter.cs
  9. 1
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/SimpleContentView.cs
  10. 30
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/SimpleContentView.uss
  11. 4
      MaterialGraphProject/Assets/NewUI/Editor/Elements/GraphElement.cs
  12. 2
      MaterialGraphProject/Assets/NewUI/Editor/Elements/IMGUIElement.cs
  13. 3
      MaterialGraphProject/Assets/NewUI/Editor/Elements/Node.cs
  14. 4
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/ClickSelector.cs
  15. 6
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/ContentDragger.cs
  16. 2
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/Dragger.cs
  17. 2
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/EdgeConnector.cs
  18. 56
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/MouseManipulator.cs
  19. 2
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/RectangleSelector.cs
  20. 17
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/Resizer.cs
  21. 2
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/SelectionDragger.cs
  22. 2
      MaterialGraphProject/Assets/NewUI/Editor/Views/GraphView.cs
  23. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphView.cs
  24. 356
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/WithSubGraph.ShaderGraph
  25. 247
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/cracks.ShaderSubGraph
  26. 199
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/fresnel.ShaderSubGraph
  27. 156
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Comment.cs
  28. 12
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Comment.cs.meta
  29. 41
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Presenters/CommentPresenter.cs
  30. 12
      MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Presenters/CommentPresenter.cs.meta
  31. 44
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/ManipActivator.cs
  32. 12
      MaterialGraphProject/Assets/NewUI/Editor/Manipulators/ManipActivator.cs.meta
  33. 259
      MaterialGraphProject/Assets/Resources/BebasNeue.otf
  34. 19
      MaterialGraphProject/Assets/Resources/BebasNeue.otf.meta

2
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/NodeDrawer.cs


using UnityEngine;
using UnityEngine.RMGUI;
using UnityEditor.Graphing.Util;
using UnityEngine.RMGUI.StyleEnums;
using UnityEngine.RMGUI.StyleSheets;
namespace UnityEditor.Graphing.Drawing

public override void SetPosition(Rect newPos)
{
positionType = PositionType.Absolute;
positionLeft = newPos.x;
positionTop = newPos.y;
}

2
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Manipulators/Clicker.cs


public Clicker()
{
activateButtons[(int)MouseButton.LeftMouse] = true;
activators.Add(new ManipActivator {button = MouseButton.LeftMouse});
}
public override EventPropagation HandleEvent(Event evt, VisualElement finalTarget)

4
MaterialGraphProject/Assets/NewUI/Editor/Decorators/GridBackground.cs


m_Container = graphView.contentViewContainer;
Rect clientRect = graphView.position;
// Since we're always stretch to parent size, we will use (0,0) as (x,y) coordinates
clientRect.x = 0;
clientRect.y = 0;
var containerScale = new Vector3(m_Container.transform.GetColumn(0).magnitude,
m_Container.transform.GetColumn(1).magnitude,
m_Container.transform.GetColumn(2).magnitude);

5
MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Circle.cs


var p = new Vector2(Mathf.Max(rectangle.x, Mathf.Min(radius, rectangle.xMax)), Mathf.Max(rectangle.y, Mathf.Min(radius, rectangle.yMax)));
return Vector2.Distance(new Vector2(radius, radius), p) <= radius;
}
public Circle()
{
elementTypeColor = new Color(1.0f, 1.0f, 1.0f, 0.5f);
}
}
}

5
MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/InvisibleBorderContainer.cs


{
return paddingRect.Contains(localPoint);
}
public InvisibleBorderContainer()
{
elementTypeColor = new Color(0.0f, 1.0f, 0.0f, 0.5f);
}
}
}

8
MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/MiniMap.cs


readonly Label m_Label;
Dragger m_Dragger;
readonly Color m_ViewportColor = new Color(1.0f, 1.0f, 0.0f, 0.5f);
readonly Color m_ChildrenColor = new Color(1.0f, 1.0f, 1.0f, 0.25f);
Color m_ViewportColor = new Color(1.0f, 1.0f, 0.0f, 0.35f);
readonly Color m_SelectedChildrenColor = new Color(1.0f, 1.0f, 1.0f, 0.5f);
// Various rects used by the MiniMap

// Display elements in the MiniMap
Color currentColor = Handles.color;
Handles.color = m_ChildrenColor;
foreach (var child in container.children)
{
var elem = child as GraphElement;

var rect = CalculateElementRect(elem);
Handles.DrawSolidRectangleWithOutline(rect, m_ChildrenColor, m_ChildrenColor);
Handles.color = elem.elementTypeColor;
Handles.DrawSolidRectangleWithOutline(rect, elem.elementTypeColor, elem.elementTypeColor);
var elementPresenter = elem.GetPresenter<GraphElementPresenter>();
if (elementPresenter != null && elementPresenter.selected)
DrawRectangleOutline(rect, m_SelectedChildrenColor);

20
MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/NodesContentView.cs


using System;
using UnityEditor;
using UnityEngine;
using UnityEngine.RMGUI;

class NodesContentView : SimpleContentView
{
private readonly System.Random m_Rnd = new System.Random();
private int m_CommentIndex;
public NodesContentView()
{

var menu = new GenericMenu();
menu.AddItem(new GUIContent("Create Operator"), false,
contentView => CreateOperator(),
this);
menu.AddItem(new GUIContent("Create Comment"), false,
contentView => CreateComment(),
this);
menu.ShowAsContext();
return EventPropagation.Continue;

int y = m_Rnd.Next(0, 300);
contentViewPresenter.CreateOperator(typeof(Vector3), new Rect(x, y, 200, 176), "Shiny New Operator");
}
public void CreateComment()
{
var contentViewPresenter = ((GraphView) this).presenter as NodesContentViewPresenter;
if (contentViewPresenter != null)
{
int x = m_Rnd.Next(0, 600);
int y = m_Rnd.Next(0, 500);
var color = new Color(m_Rnd.Next(0, 255) / 255f, m_Rnd.Next(0, 255) / 255f, m_Rnd.Next(0, 255) / 255f);
var title = String.Format("Comment {0}", (++m_CommentIndex));
var body = "This is another comment. It is made of words and a few return carriages. Nothing more. I hope we can see this whole line.\n\n" +
"This is a new paragraph. Just to test the CommentPresenter.";
contentViewPresenter.CreateComment(new Rect(x, y, 500, 300), title, body, color);
}
}
}
}

18
MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/Presenters/NodesContentViewPresenter.cs


verticalNodePresenter.position = new Rect(430, 420, 100, 100);
AddElement(verticalNodePresenter);
var commentPresenter = CreateInstance<CommentPresenter>();
commentPresenter.position = new Rect(830, 0, 500, 300);
commentPresenter.color = new Color(0.4f, 0f, 0f, 0.3f);
commentPresenter.titleBar = "My First Comment";
commentPresenter.body = "This is my first comment. It is made of words and a few return carriages. Nothing more. I hope we can see this whole line.\n\n" +
"This is a new paragraph. Just to test the CommentPresenter.";
AddElement(commentPresenter);
var miniMapPresenter = CreateInstance<MiniMapPresenter>();
miniMapPresenter.position = new Rect(210, 186, 200, 176);
AddElement(miniMapPresenter);

nodePresenter.position = pos;
nodePresenter.title = title;
AddElement(nodePresenter);
}
public void CreateComment(Rect pos, string title, string body, Color color)
{
var commentPresenter = CreateInstance<CommentPresenter>();
commentPresenter.position = pos;
commentPresenter.titleBar = title;
commentPresenter.color = color;
commentPresenter.body = body;
AddElement(commentPresenter);
}
protected NodesContentViewPresenter() {}

1
MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/SimpleContentView.cs


dataMapper[typeof(SimpleElementPresenter)] = typeof(SimpleElement);
dataMapper[typeof(WWWImagePresenter)] = typeof(WWWImage);
dataMapper[typeof(IMGUIPresenter)] = typeof(IMGUIElement);
dataMapper[typeof(CommentPresenter)] = typeof(Comment);
}
}
}

30
MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/SimpleContentView.uss


InvisibleBorderContainer.graphElement.selected {
border-color:#00F;
}
Comment.graphElement {
background-color:rgba(100, 0, 0, 0.3);
}
Comment.graphElement.selected {
border-color:rgba(0, 0, 0, 0.0);
}
Comment.graphElement #commentTitle {
font:path("Assets/Resources/BebasNeue.otf");
font-size:64;
text-alignment:upper-left;
text-color:rgba(192, 192, 192, 0.8);
border-left:3;
border-top:3;
border-right:3;
border-width:3;
text-clipping:clip;
word-wrap:true;
}
Comment.graphElement #commentBody {
font:path("Assets/Resources/Roboto/Roboto-Regular.ttf");
font-size:12;
text-alignment:upper-left;
text-color:rgba(192, 192, 192, 0.8);
text-clipping:clip;
word-wrap:true;
}

4
MaterialGraphProject/Assets/NewUI/Editor/Elements/GraphElement.cs


{
GraphElementPresenter m_Presenter;
Color m_ElementTypeColor;
public Color elementTypeColor { get { return m_ElementTypeColor; } set { m_ElementTypeColor = value; } }
m_ElementTypeColor = new Color(0.9f, 0.9f, 0.9f, 0.5f);
}
public T GetPresenter<T>() where T : GraphElementPresenter

2
MaterialGraphProject/Assets/NewUI/Editor/Elements/IMGUIElement.cs


{
public class IMGUIElement : SimpleElement
{
private IMGUIContainer m_Container;
protected IMGUIContainer m_Container;
public IMGUIElement()
{
m_Container = new IMGUIContainer

3
MaterialGraphProject/Assets/NewUI/Editor/Elements/Node.cs


using UnityEngine;
using UnityEngine.RMGUI;
namespace RMGUI.GraphView

name = "output", // for USS&Flexbox
pickingMode = PickingMode.Ignore,
};
elementTypeColor = new Color(0.9f, 0.9f, 0.9f, 0.5f);
AddChild(mainContainer);
mainContainer.AddChild(m_InputContainer);

4
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/ClickSelector.cs


{
// snoop events before children
phaseInterest = EventPhase.Capture;
activateButtons[(int)MouseButton.LeftMouse] = true;
activateButtons[(int)MouseButton.RightMouse] = true;
activators.Add(new ManipActivator {button = MouseButton.LeftMouse});
activators.Add(new ManipActivator {button = MouseButton.RightMouse});
}
public override EventPropagation HandleEvent(Event evt, VisualElement finalTarget)

6
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/ContentDragger.cs


public ContentDragger()
{
activateButtons[(int)MouseButton.LeftMouse] = true;
activateModifiers = KeyModifiers.Alt;
activators.Add(new ManipActivator {button = MouseButton.LeftMouse, modifiers = KeyModifiers.Alt});
activators.Add(new ManipActivator {button = MouseButton.MiddleMouse});
panSpeed = new Vector2(1, 1);
clampToParentEdges = false;
}

switch (evt.type)
{
case EventType.MouseDown:
if (CanStartManipulation(evt) && HasModifiers(evt))
if (CanStartManipulation(evt))
{
this.TakeCapture();

2
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/Dragger.cs


public Dragger()
{
activateButtons[(int)MouseButton.LeftMouse] = true;
activators.Add(new ManipActivator {button = MouseButton.LeftMouse});
panSpeed = new Vector2(1, 1);
clampToParentEdges = false;
}

2
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/EdgeConnector.cs


public EdgeConnector()
{
activateButtons[(int)MouseButton.LeftMouse] = true;
activators.Add(new ManipActivator {button = MouseButton.LeftMouse});
}
public override EventPropagation HandleEvent(Event evt, VisualElement finalTarget)

56
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/MouseManipulator.cs


using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.RMGUI;

{
MouseButton manipButton { get; set; }
bool[] m_ActivateButtons = new bool[Enum.GetNames(typeof(MouseButton)).Length];
public bool[] activateButtons { get { return m_ActivateButtons; } }
public List<ManipActivator> activators { get; private set; }
private ManipActivator m_currentActivator;
public KeyModifiers activateModifiers { get; set; }
public MouseManipulator()
{
activators = new List<ManipActivator>();
}
if (!activateButtons[evt.button])
foreach (var activator in activators)
return false;
if (activator.Matches(evt))
{
m_currentActivator = activator;
return true;
}
manipButton = (MouseButton)evt.button;
return true;
return false;
return (((MouseButton)evt.button == manipButton) && this.HasCapture());
}
protected bool HasModifiers(Event evt)
{
if (((activateModifiers & KeyModifiers.Alt) != 0 && !evt.alt) ||
((activateModifiers & KeyModifiers.Alt) == 0 && evt.alt))
{
return false;
}
if (((activateModifiers & KeyModifiers.Ctrl) != 0 && !evt.control) ||
((activateModifiers & KeyModifiers.Ctrl) == 0 && evt.control))
{
return false;
}
if (((activateModifiers & KeyModifiers.Shift) != 0 && !evt.shift) ||
((activateModifiers & KeyModifiers.Shift) == 0 && evt.shift))
{
return false;
}
if (((activateModifiers & KeyModifiers.Command) != 0 && !evt.command) ||
((activateModifiers & KeyModifiers.Command) == 0 && evt.command))
{
return false;
}
return true;
return ((MouseButton)evt.button == m_currentActivator.button) && this.HasCapture();
}
}
}

2
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/RectangleSelector.cs


public RectangleSelector()
{
activateButtons[(int)MouseButton.LeftMouse] = true;
activators.Add(new ManipActivator {button = MouseButton.LeftMouse});
m_Rectangle = new RectangleSelect
{
positionType = PositionType.Absolute,

17
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/Resizer.cs


private readonly Rect k_WidgetTextOffset = new Rect(0, 0, 5, 5);
public Resizer()
public Resizer() :
this(new Vector2(30.0f, 30.0f))
m_MinimumSize = new Vector2(30.0f, 30.0f);
activateButton = MouseButton.LeftMouse;
positionType = PositionType.Absolute;
positionTop = float.NaN;
positionLeft = float.NaN;
positionBottom = 0;
positionRight = 0;
// make clickable area bigger than render area
paddingLeft = 10;
paddingTop = 14;
width = 20;
height = 20;
}
public Resizer(Vector2 minimumSize)

2
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/SelectionDragger.cs


{
public SelectionDragger()
{
activateButtons[(int)MouseButton.LeftMouse] = true;
activators.Add(new ManipActivator {button = MouseButton.LeftMouse});
panSpeed = new Vector2(1, 1);
clampToParentEdges = false;
}

2
MaterialGraphProject/Assets/NewUI/Editor/Views/GraphView.cs


if (!m_Presenter.elements.Contains(c.presenter))
{
c.parent.RemoveChild(c);
selection.Remove(c);
selection.Remove(c);
}
}

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphView.cs


if (node == null)
return;
var drawstate = node.drawState;
drawstate.position = new Rect(posObj.m_Pos.x, posObj.m_Pos.y, 0, 0);
Vector3 localPos = contentViewContainer.transform.inverse.MultiplyPoint3x4(posObj.m_Pos);
drawstate.position = new Rect(localPos.x, localPos.y, 0, 0);
node.drawState = drawstate;
var graphDataSource = GetPresenter<AbstractGraphDataSource>();

356
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/WithSubGraph.ShaderGraph


m_Script: {fileID: 11500000, guid: 562bd27a5e73fc64d80a1d9d936ffbd5, type: 3}
m_Name: WithSubGraph
m_EditorClassIdentifier:
m_DrawingData:
m_SerializableSelection: []
m_MaterialGraph:
m_SerializableNodes:
- typeInfo:

\ \"m_Name\": \"MetallicMasterNode\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": 771.655517578125,\n \"y\": 62.28950500488281,\n
\ \"x\": 1733.8780517578125,\n \"y\": 127.85113525390625,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Albedo\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Normal\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
2,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Albedo\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Normal\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 2,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Normal\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"Emission\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
2,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Normal\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"Emission\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 2,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Emission\\\"\\n}\"\n },\n
\ {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Metallic\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Emission\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Metallic\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Metallic\\\"\\n}\"\n },\n
\ {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"Smoothness\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Metallic\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"Smoothness\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Smoothness\\\"\\n}\"\n },\n
\ {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"Occlusion\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Smoothness\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"Occlusion\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Occlusion\\\"\\n}\"\n },\n
\ {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 6,\\n \\\"m_DisplayName\\\": \\\"Alpha\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Occlusion\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 6,\\n \\\"m_DisplayName\\\": \\\"Alpha\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Alpha\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_MaterialOptions\": {\n \"m_SrcBlend\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Alpha\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ],\n \"m_MaterialOptions\": {\n \"m_SrcBlend\":
0,\n \"m_DstBlend\": 1,\n \"m_CullMode\": 0,\n \"m_ZTest\":
2,\n \"m_ZWrite\": 0,\n \"m_RenderQueue\": 1,\n \"m_RenderType\":
0,\n \"m_ShadowPass\": false,\n \"m_FullForwardShadows\": false,\n

JSONnodeData: "{\n \"m_GuidSerialized\": \"631f4909-24f0-4658-baba-c8c4572e0335\",\n
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": 35.42873001098633,\n \"y\": -404.80279541015627,\n
\ \"x\": 1193.5181884765625,\n \"y\": 124.45823669433594,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"R\\\",\\n \\\"m_SlotType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"R\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"R\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"R\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"B\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"B\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"B\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"B\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"UV\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"UV\\\",\\n \\\"m_SlotType\\\":
2,\\n \\\"m_ShaderOutputName\\\": \\\"UV\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
2,\\n \\\"m_ShaderOutputName\\\": \\\"UV\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": \"{\\n \\\"texture\\\":
{\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": \\\"330f42016073a97418a4aae5517e32c8\\\",\\n
\ \\\"type\\\": 3\\n }\\n}\",\n \"m_TextureType\": 0\n}"

JSONnodeData: "{\n \"m_GuidSerialized\": \"66307d31-2630-4f44-96d4-23139633f2d7\",\n
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": 22.967119216918947,\n \"y\": -355.47174072265627,\n
\ \"x\": 1193.365478515625,\n \"y\": 474.4383850097656,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"R\\\",\\n \\\"m_SlotType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"R\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"R\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"R\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"B\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"B\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"B\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"B\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"UV\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"UV\\\",\\n \\\"m_SlotType\\\":
2,\\n \\\"m_ShaderOutputName\\\": \\\"UV\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
2,\\n \\\"m_ShaderOutputName\\\": \\\"UV\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": \"{\\n \\\"texture\\\":
{\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": \\\"5a5e07ee958edbd468227e1d9ac4726a\\\",\\n
\ \\\"type\\\": 3\\n }\\n}\",\n \"m_TextureType\": 3\n}"

JSONnodeData: "{\n \"m_GuidSerialized\": \"57380e21-ab16-4f46-b629-e589a46b8d13\",\n
\ \"m_Name\": \"SubGraph\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": -520.95068359375,\n \"y\": -103.82339477539063,\n
\ \"x\": 606.176513671875,\n \"y\": 1003.687744140625,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": \\\"Input 2(4)\\\",\\n
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": \\\"Input 2(4)\\\",\\n
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Output 1(4)\\\",\\n
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Output 1(4)\\\",\\n
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output1\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_SerializedSubGraph\": \"{\\n \\\"subGraph\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ],\n \"m_SerializedSubGraph\": \"{\\n \\\"subGraph\\\":
{\\n \\\"fileID\\\": 11400000,\\n \\\"guid\\\": \\\"63179f4461979734ba87324ec6b1268d\\\",\\n
\ \\\"type\\\": 2\\n }\\n}\"\n}"
- typeInfo:

\ \"m_Name\": \"ColorNode\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": -939.8272705078125,\n \"y\": -210.86141967773438,\n
\ \"x\": 108.4876937866211,\n \"y\": 1095.2840576171875,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Color\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Color\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_Color\": {\n \"r\": 0.05449826642870903,\n
\ \"g\": 0.09659335017204285,\n \"b\": 0.9264705777168274,\n
\ \"a\": 0.0\n }\n}"

JSONnodeData: "{\n \"m_GuidSerialized\": \"3cff1441-893f-42dc-aaa9-4ce425d308b1\",\n
\ \"m_Name\": \"V1Node\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": -957.7119140625,\n \"y\": -609.7997436523438,\n
\ \"x\": 106.9897689819336,\n \"y\": 974.9195556640625,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_Value\": 8.0\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.SubGraphNode

true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": -548.7455444335938,\n \"y\": -1089.481201171875,\n
\ \"x\": 611.1548461914063,\n \"y\": 669.4006958007813,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": \\\"Input 2(4)\\\",\\n
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": \\\"Input 2(4)\\\",\\n
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Output 1(4)\\\",\\n
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Output 1(4)\\\",\\n
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output1\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_SerializedSubGraph\": \"{\\n \\\"subGraph\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ],\n \"m_SerializedSubGraph\": \"{\\n \\\"subGraph\\\":
{\\n \\\"fileID\\\": 11400000,\\n \\\"guid\\\": \\\"10c41d675e06a124a845154dccbcafa8\\\",\\n
\ \\\"type\\\": 2\\n }\\n}\"\n}"
- typeInfo:

\ \"m_Name\": \"V1Node\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": -942.9769287109375,\n \"y\": -1118.2293701171875,\n
\ \"x\": 108.0907974243164,\n \"y\": 837.6611938476563,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_Value\": 0.7599999904632568\n}"
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_Value\": 0.23999999463558198\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.SinTimeNode
assemblyName: Assembly-CSharp

\ \"x\": -967.4246826171875,\n \"y\": -1484.412353515625,\n
\ \"x\": 96.04146575927735,\n \"y\": 573.3530883789063,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

1.0,\\n \\\"z\\\": 1.0,\\n \\\"w\\\": 1.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 1.0,\\n \\\"y\\\": 1.0,\\n \\\"z\\\":
1.0,\\n \\\"w\\\": 1.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"SinTime\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"SinTime\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.AddNode
assemblyName: Assembly-CSharp

\ \"x\": 21.216936111450197,\n \"y\": -1579.81591796875,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\ \"x\": 1197.6739501953125,\n \"y\": 818.5625,\n \"width\":
0.0,\n \"height\": 0.0\n }\n },\n \"m_SerializableSlots\":
[\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Input1\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Input1\\\",\\n \\\"m_SlotType\\\":
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n \\\"m_SlotType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.TextureNode
assemblyName: Assembly-CSharp

\ \"x\": 37.49300003051758,\n \"y\": -1515.2398681640625,\n
\ \"x\": 1197.2586669921875,\n \"y\": 1151.0247802734375,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"R\\\",\\n \\\"m_SlotType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"R\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"R\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"R\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"B\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"B\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"B\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"B\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"UV\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"UV\\\",\\n \\\"m_SlotType\\\":
2,\\n \\\"m_ShaderOutputName\\\": \\\"UV\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
2,\\n \\\"m_ShaderOutputName\\\": \\\"UV\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": \"{\\n \\\"texture\\\":
{\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": \\\"6e8d12f68bae2294da814f9d4c81b29a\\\",\\n
\ \\\"type\\\": 3\\n }\\n}\",\n \"m_TextureType\": 0\n}"

247
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/cracks.ShaderSubGraph


m_Script: {fileID: 11500000, guid: 03c166a9713f1e14ca9fb529deeee772, type: 3}
m_Name: cracks
m_EditorClassIdentifier:
m_DrawingData:
m_SerializableSelection:
- be9ff4e1-caa8-4e27-afa3-cb97b096423e
- f1a71249-a296-4de6-a298-98da37ae3e1e
- 0d5979cf-43f6-4006-823e-ee52074f8b25
- 3d53f521-87aa-4d50-9276-8081340f4b7d
- 376ca068-34bd-413c-9d72-35cbbee15e79
- 992b43b5-7e46-4087-9dfa-2497303f2719
- 7845b8d3-2f2e-4743-b9ee-62b372585037
- 9d0b8029-de3f-4d49-8e94-2543eb26e4f1
- f21b82ea-7ed5-428c-923b-5173eff2ba9a
- afe32aee-e0a2-4ade-b355-e4d57b3ce835
m_MaterialSubGraph:
m_SerializableNodes:
- typeInfo:

\ \"m_Name\": \"SubGraphInputs\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": -108.82353973388672,\n \"y\": 396.3549499511719,\n
\ \"x\": 902.2586669921875,\n \"y\": 497.4632263183594,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": \\\"Input 2\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": \\\"Input 2\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.SubGraphOutputNode
assemblyName: Assembly-CSharp

\ \"x\": 989.1889038085938,\n \"y\": -52.760902404785159,\n
\ \"x\": 2186.311279296875,\n \"y\": 193.9431915283203,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output1\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output1\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.TextureNode
assemblyName: Assembly-CSharp

\ \"x\": -1178.41455078125,\n \"y\": -25.989229202270509,\n
\ \"x\": 26.795249938964845,\n \"y\": 281.3797302246094,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"R\\\",\\n \\\"m_SlotType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"R\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"R\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"R\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"B\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"B\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"B\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"B\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"UV\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"UV\\\",\\n \\\"m_SlotType\\\":
2,\\n \\\"m_ShaderOutputName\\\": \\\"UV\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
2,\\n \\\"m_ShaderOutputName\\\": \\\"UV\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": \"{\\n \\\"texture\\\":
{\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": \\\"6e8d12f68bae2294da814f9d4c81b29a\\\",\\n
\ \\\"type\\\": 3\\n }\\n}\",\n \"m_TextureType\": 0\n}"

JSONnodeData: "{\n \"m_GuidSerialized\": \"3d53f521-87aa-4d50-9276-8081340f4b7d\",\n
\ \"m_Name\": \"SubtractNode\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": -802.5894165039063,\n \"y\": -351.9988098144531,\n
\ \"x\": 479.4627990722656,\n \"y\": 149.49801635742188,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.Vector1Node
assemblyName: Assembly-CSharp

\ \"x\": -1204.02978515625,\n \"y\": -662.9304809570313,\n
\ \"x\": 21.401573181152345,\n \"y\": 141.89109802246095,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_Value\": 1.0\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.MultiplyNode

true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": 267.6522521972656,\n \"y\": -703.5165405273438,\n
\ \"x\": 1396.0201416015625,\n \"y\": 210.5017852783203,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.PowerNode
assemblyName: Assembly-CSharp

\ \"x\": -139.22515869140626,\n \"y\": -993.5975341796875,\n
\ \"x\": 916.3446655273438,\n \"y\": 175.2135772705078,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.Vector1Node
assemblyName: Assembly-CSharp

\ \"x\": -509.1436462402344,\n \"y\": -1213.7598876953125,\n
\ \"x\": 449.3622741699219,\n \"y\": 505.08001708984377,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_Value\": 2.8499999046325685\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.MultiplyNode

true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": 624.84130859375,\n \"y\": -1360.296142578125,\n
\ \"x\": 1805.7857666015625,\n \"y\": 208.90353393554688,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.AbsoluteNode
assemblyName: Assembly-CSharp

\ \"x\": 238.63864135742188,\n \"y\": -1208.9111328125,\n
\ \"x\": 1383.1837158203125,\n \"y\": 558.46044921875,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
m_SerializableEdges:
- typeInfo:
fullName: UnityEngine.Graphing.Edge

199
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/fresnel.ShaderSubGraph


m_Script: {fileID: 11500000, guid: 03c166a9713f1e14ca9fb529deeee772, type: 3}
m_Name: fresnel
m_EditorClassIdentifier:
m_DrawingData:
m_SerializableSelection: []
m_MaterialSubGraph:
m_SerializableNodes:
- typeInfo:

\ \"m_Name\": \"SubGraphInputs\",\n \"m_DrawData\": {\n \"m_Expanded\":
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": -383.1089172363281,\n \"y\": 411.830810546875,\n
\ \"x\": 904.2462768554688,\n \"y\": 463.2170104980469,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": \\\"Input 2\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": \\\"Input 2\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.SubGraphOutputNode
assemblyName: Assembly-CSharp

\ \"x\": 1037.2552490234375,\n \"y\": 3.5371651649475099,\n
\ \"x\": 2113.656982421875,\n \"y\": 387.58013916015627,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output1\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output1\\\",\\n \\\"m_ShowValue\\\":
false\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.WorldSpaceViewDirectionNode
assemblyName: Assembly-CSharp

\ \"x\": -1332.3092041015625,\n \"y\": -11.14682674407959,\n
\ \"x\": 22.65700912475586,\n \"y\": 221.44256591796876,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"worldSpaceViewDirection\\\"\\n}\"\n
\ }\n ],\n \"m_OutputPrecision\": 1\n}"
3,\\n \\\"m_ShaderOutputName\\\": \\\"worldSpaceViewDirection\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.WorldSpaceNormalNode
assemblyName: Assembly-CSharp

\ \"x\": -1224.621826171875,\n \"y\": 11.020646095275879,\n
\ \"x\": 19.459081649780275,\n \"y\": 519.4720458984375,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 1.0,\\n \\\"w\\\": 1.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
1.0,\\n \\\"w\\\": 1.0\\n },\\n \\\"m_ConcreteValueType\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Normal\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
3,\\n \\\"m_ShaderOutputName\\\": \\\"Normal\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.DotNode
assemblyName: Assembly-CSharp

\ \"x\": -793.046875,\n \"y\": -368.6631774902344,\n
\ \"x\": 524.0581665039063,\n \"y\": 280.4234619140625,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
2,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 2,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
3,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
1,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.Vector1Node
assemblyName: Assembly-CSharp

\ \"x\": -817.794677734375,\n \"y\": -823.296875,\n \"width\":
0.0,\n \"height\": 0.0\n }\n },\n \"m_SerializableSlots\":
[\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Value\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
\ \"x\": 510.12841796875,\n \"y\": 147.62864685058595,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Value\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ],\n \"m_PropertyName\": \"\",\n \"m_Description\":
\"\",\n \"m_Exposed\": 1,\n \"m_Value\": 1.0299999713897706\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.SubtractNode

true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n
\ \"x\": -429.47296142578127,\n \"y\": -905.2852172851563,\n
\ \"x\": 901.1547241210938,\n \"y\": 135.9580535888672,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
1,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
1,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.PowerNode
assemblyName: Assembly-CSharp

\ \"x\": 24.107908248901368,\n \"y\": -1199.31298828125,\n
\ \"x\": 1335.8038330078125,\n \"y\": 136.7236785888672,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":

0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\":
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\":
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
- typeInfo:
fullName: UnityEngine.MaterialGraph.MultiplyNode
assemblyName: Assembly-CSharp

\ \"x\": 656.7339477539063,\n \"y\": -1453.90625,\n \"width\":
0.0,\n \"height\": 0.0\n }\n },\n \"m_SerializableSlots\":
[\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Input1\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
\ \"x\": 1741.2496337890625,\n \"y\": 412.2178649902344,\n
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Input1\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n \\\"m_SlotType\\\":
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\":
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\":
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\":
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\":
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n
\ \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n \\\"m_SlotType\\\":
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\":
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n
\ \"m_OutputPrecision\": 1\n}"
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\",\\n \\\"m_ShowValue\\\":
true\\n}\"\n }\n ]\n}"
m_SerializableEdges:
- typeInfo:
fullName: UnityEngine.Graphing.Edge

156
MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Comment.cs


using System.Security.Cryptography.X509Certificates;
using UnityEditor;
using UnityEngine;
using UnityEngine.RMGUI;
using UnityEngine.RMGUI.StyleSheets;
namespace RMGUI.GraphView.Demo
{
// TODO: Temporary class to use IMGUI's TextArea instead of RMGUI.TextField (unavailable for now)
public class Comment : IMGUIElement
{
int m_MaxTitleLength;
bool m_ShowBackgroundColor;
// TODO: Get style from USS when switching to RMGUI.TextField
GUIStyle m_TitleStyle;
GUIStyle m_BodyStyle;
public override void OnGUIHandler()
{
var commentPresenter = GetPresenter<CommentPresenter>();
if (commentPresenter == null)
return;
Color oldBackgroundColor = GUI.backgroundColor;
GUI.backgroundColor = backgroundColor;
EditorGUILayout.BeginVertical();
commentPresenter.titleBar = EditorGUILayout.TextArea(commentPresenter.titleBar, /*m_MaxTitleLength,*/ m_TitleStyle);
if (m_ShowBackgroundColor)
commentPresenter.color = EditorGUILayout.ColorField(commentPresenter.color);
commentPresenter.body = EditorGUILayout.TextArea(commentPresenter.body, m_BodyStyle);
EditorGUILayout.EndVertical();
GUI.backgroundColor = oldBackgroundColor;
}
public Comment()
{
clipChildren = true;
elementTypeColor = new Color(0.8f, 0.8f, 0.8f, 0.5f);
backgroundColor = elementTypeColor;
m_MaxTitleLength = 64;
m_Container.positionTop = 0;
m_TitleStyle = new GUIStyle();
m_TitleStyle.name = "commentTitle";
m_TitleStyle.font = EditorGUIUtility.Load("Assets/Resources/BebasNeue.otf") as Font;
m_TitleStyle.fontSize = 64;
m_TitleStyle.alignment = TextAnchor.UpperLeft;
m_TitleStyle.normal.textColor = new Color(0.75f, 0.75f, 0.75f);
m_TitleStyle.border.left = 3;
m_TitleStyle.border.top = 3;
m_TitleStyle.border.right = 3;
m_TitleStyle.clipping = TextClipping.Clip;
m_TitleStyle.wordWrap = true;
m_TitleStyle.padding.top = 8;
m_TitleStyle.padding.left = 8;
m_TitleStyle.padding.bottom = 8;
m_TitleStyle.padding.right = 8;
m_TitleStyle.margin.top = 8;
m_TitleStyle.margin.bottom = 8;
m_TitleStyle.margin.left = 8;
m_TitleStyle.margin.right = 8;
m_BodyStyle = new GUIStyle();
m_BodyStyle.name = "commentBody";
m_BodyStyle.font = EditorGUIUtility.Load("Assets/Resources/Roboto/Roboto-Regular.ttf") as Font;
m_BodyStyle.fontSize = 12;
m_BodyStyle.alignment = TextAnchor.UpperLeft;
m_BodyStyle.normal.textColor = new Color(0.75f, 0.75f, 0.75f);
m_BodyStyle.clipping = TextClipping.Clip;
m_BodyStyle.wordWrap = true;
m_BodyStyle.padding.top = 8;
m_BodyStyle.padding.left = 8;
m_BodyStyle.padding.bottom = 8;
m_BodyStyle.padding.right = 8;
m_BodyStyle.margin.top = 8;
m_BodyStyle.margin.bottom = 8;
m_BodyStyle.margin.left = 8;
m_BodyStyle.margin.right = 8;
AddManipulator(new ContextualMenu((evt, customData) =>
{
var menu = new GenericMenu();
menu.AddItem(new GUIContent("Toggle Background Color Control"), false,
contentView => ToggleBackgroundColor(),
this);
menu.ShowAsContext();
return EventPropagation.Continue;
}));
}
private void ToggleBackgroundColor()
{
m_ShowBackgroundColor = !m_ShowBackgroundColor;
}
public override void OnDataChanged()
{
base.OnDataChanged();
var commentPresenter = GetPresenter<CommentPresenter>();
if (commentPresenter == null)
return;
backgroundColor = new Color(commentPresenter.color.r, commentPresenter.color.g, commentPresenter.color.b, 0.5f);
this.Touch(ChangeType.Layout);
}
}
// // Comment is, for the moment, made of a title bar and a comment body (both IMGUI), until we have RMGUI.TextField
// public class Comment : IMGUIElement
// {
// TextField m_TitleBar;
// TextField m_Body;
//
// public Comment()
// {
// clipChildren = true;
// elementTypeColor = new Color(0.8f, 0.8f, 0.8f, 0.5f);
//
// m_TitleBar = new TextField()
// {
// name = "commentTitle",
// flex = 1
// };
// AddChild(m_Title);
//
// m_Body = new TextField()
// {
// name = "commentBody",
// flex = 1
// };
// AddChild(m_Body);
// }
//
// public override void OnDataChanged()
// {
// base.OnDataChanged();
//
// var commentPresenter = GetPresenter<CommentPresenter>();
// if (commentPresenter == null)
// return;
//
// m_TitleBar.text = commentPresenter.titleBar;
// m_Body.text = commentPresenter.body;
//
// this.Touch(ChangeType.Layout);
// }
// }
}

12
MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Comment.cs.meta


fileFormatVersion: 2
guid: 6b18f5bff13f3ec4ea38f9b5ea51c954
timeCreated: 1481574401
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

41
MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Presenters/CommentPresenter.cs


using System;
using UnityEditor;
using UnityEngine;
namespace RMGUI.GraphView.Demo
{
[Serializable]
public class CommentPresenter : IMGUIPresenter
{
[SerializeField]
private string m_TitleBar;
public string titleBar
{
get { return m_TitleBar; }
set { m_TitleBar = value; }
}
[SerializeField]
private string m_Body;
public string body
{
get { return m_Body; }
set { m_Body = value; }
}
[SerializeField]
private Color m_Color;
public Color color
{
get { return m_Color; }
set { m_Color = value; }
}
protected new void OnEnable()
{
base.OnEnable();
capabilities |= Capabilities.Deletable | Capabilities.Resizable;
title = string.Empty;
}
}
}

12
MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Presenters/CommentPresenter.cs.meta


fileFormatVersion: 2
guid: 4d4ad776c3cce684bbaa04f340f6c4c8
timeCreated: 1481574691
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

44
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/ManipActivator.cs


using UnityEngine;
namespace RMGUI.GraphView
{
public struct ManipActivator
{
public MouseButton button;
public KeyModifiers modifiers;
public bool Matches(Event evt)
{
return button == (MouseButton) evt.button && HasModifiers(evt);
}
private bool HasModifiers(Event evt)
{
if (((modifiers & KeyModifiers.Alt) != 0 && !evt.alt) ||
((modifiers & KeyModifiers.Alt) == 0 && evt.alt))
{
return false;
}
if (((modifiers & KeyModifiers.Ctrl) != 0 && !evt.control) ||
((modifiers & KeyModifiers.Ctrl) == 0 && evt.control))
{
return false;
}
if (((modifiers & KeyModifiers.Shift) != 0 && !evt.shift) ||
((modifiers & KeyModifiers.Shift) == 0 && evt.shift))
{
return false;
}
if (((modifiers & KeyModifiers.Command) != 0 && !evt.command) ||
((modifiers & KeyModifiers.Command) == 0 && evt.command))
{
return false;
}
return true;
}
}
}

12
MaterialGraphProject/Assets/NewUI/Editor/Manipulators/ManipActivator.cs.meta


fileFormatVersion: 2
guid: 4c8126c59be6c26409f23ee8dcdd7ef9
timeCreated: 1482524696
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

259
MaterialGraphProject/Assets/Resources/BebasNeue.otf
文件差异内容过多而无法显示
查看文件

19
MaterialGraphProject/Assets/Resources/BebasNeue.otf.meta


fileFormatVersion: 2
guid: 482bf6bc675e4484e840ef865192826d
timeCreated: 1455620308
licenseType: Pro
TrueTypeFontImporter:
serializedVersion: 2
fontSize: 16
forceTextureCase: -2
characterSpacing: 1
characterPadding: 0
includeFontData: 1
use2xBehaviour: 0
fontNames: []
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存