GitHub
8 年前
当前提交
dc7e686b
共有 385 个文件被更改,包括 2394 次插入 和 1042 次删除
-
2.gitignore
-
10MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/CopySelected.cs
-
4MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/DeleteSelected.cs
-
430MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/GraphEditWindow.cs
-
11MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/NullInputProxy.cs
-
2MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/AbstractGraphDataSource.cs.meta
-
2MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Testing/UnitTests/SerializedGraphTests.cs
-
9MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Runtime/Implementation/SerializableNode.cs
-
4MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Runtime/Interfaces/IGraph.cs
-
22MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Runtime/Interfaces/INode.cs
-
13MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphEditWindow.cs
-
1MaterialGraphProject/Assets/UnityShaderEditor/Editor/Templates/2DPreview.template
-
1MaterialGraphProject/Assets/UnityShaderEditor/Editor/Templates/shader.template
-
40MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/PropertyNodeTests.cs
-
28MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/ShaderGenerationTest.cs
-
16MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/AbstractMaterialGraphTests.cs
-
9MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/Function1InputTests.cs
-
11MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/Function2InputTests.cs
-
9MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/Function3InputTests.cs
-
3MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/MaterialGraphTests.cs
-
8MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/MaterialNodeTests.cs
-
17MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/MaterialSlotTests.cs
-
41MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/PixelShaderNodeTests.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/PropertyGeneratorTests.cs
-
41MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/PropertyNodeTests.cs
-
1MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/ShaderGeneratorTests.cs
-
4MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Graphs/MaterialGraph.cs
-
1MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Graphs/MaterialOptions.cs
-
58MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Graphs/PixelGraph.cs
-
21MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Interfaces/Interfaces.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/BlendNode.cs
-
17MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/ColorNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/CombineNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/DivNode.cs
-
4MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/FunctionMultiInput.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/LengthNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/LerpNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/MultiplyNode.cs
-
11MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/NormalNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/NormalizeNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/PowerNode.cs
-
9MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/PropertyNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/QuantizeNode.cs
-
16MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/ScreenPosNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/SinNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/SmoothStepNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/SubtractNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/SwizzleNode.cs
-
49MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/TextureNode.cs
-
29MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UVNode.cs
-
11MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Vector1Node.cs
-
11MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Vector2Node.cs
-
11MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Vector3Node.cs
-
11MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/Vector4Node.cs
-
15MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/ViewDirectionNode.cs
-
10MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/WorldPosNode.cs
-
12MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/SubGraph.cs
-
12MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/SubGraphInputNode.cs
-
24MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/SubGraphNode.cs
-
1MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/PropertyGenerator.cs
-
231MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/ShaderGenerator.cs
-
2MaterialGraphProject/ProjectSettings/ProjectVersion.txt
-
120MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/DrawData/NodePreviewDrawData.cs
-
110MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphPreviewGenerator.cs
-
244MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/AbstractGraphDataSource.cs
-
315MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/AbstractGraphEditWindow.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/AbstractGraphEditWindow.cs.meta
-
9MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/COPIED.meta
-
9MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/DrawData.meta
-
9MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer.meta
-
9MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Manipulators.meta
-
44MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/SerializableGraphView.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/SerializableGraphView.cs.meta
-
15MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/SerializedGraphDataSource.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/SerializedGraphDataSource.cs.meta
-
9MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles.meta
-
25MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Util/UIUtilities.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Util/UIUtilities.cs.meta
-
9MaterialGraphProject/Assets/NewUI.meta
-
9MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Drawer.meta
-
164MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphView.cs
-
12MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphView.cs.meta
-
9MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Styles.meta
-
295MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/New Shader Graph.ShaderGraph
-
8MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/New Shader Graph.ShaderGraph.meta
-
300MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/blah.ShaderGraph
-
8MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/blah.ShaderGraph.meta
-
271MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/new.ShaderGraph
-
8MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/new.ShaderGraph.meta
-
36MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/something.ShaderGraph
-
8MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/something.ShaderGraph.meta
|
|||
MaterialGraphProject/.vs |
|||
MaterialGraphProject/.vscode |
|||
MaterialGraphProject/MaterialGraphProject.userprefs |
|
|||
m_EditorVersion: 5.5.0a4 |
|||
m_EditorVersion: 5.5.0b1 |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using RMGUI.GraphView; |
|||
using UnityEngine; |
|||
using UnityEngine.Graphing; |
|||
|
|||
namespace UnityEditor.Graphing.Drawing |
|||
{ |
|||
[Serializable] |
|||
public abstract class AbstractGraphDataSource : ScriptableObject, IGraphElementDataSource |
|||
{ |
|||
[SerializeField] |
|||
private List<GraphElementData> m_Elements = new List<GraphElementData>(); |
|||
|
|||
[SerializeField] |
|||
private List<GraphElementData> m_TempElements = new List<GraphElementData>(); |
|||
|
|||
private readonly Dictionary<Type, Type> m_DataMapper = new Dictionary<Type, Type>(); |
|||
|
|||
public IGraphAsset graphAsset { get; private set; } |
|||
|
|||
void OnNodeChanged(INode inNode, ModificationScope scope) |
|||
{ |
|||
var dependentNodes = new List<INode>(); |
|||
NodeUtils.CollectNodesNodeFeedsInto(dependentNodes, inNode); |
|||
foreach (var node in dependentNodes) |
|||
{ |
|||
var theElements = m_Elements.OfType<NodeDrawData>().ToList(); |
|||
var found = theElements.Where(x => x.node.guid == node.guid).ToList(); |
|||
foreach (var drawableNodeData in found) |
|||
drawableNodeData.OnModified(scope); |
|||
} |
|||
|
|||
EditorUtility.SetDirty(graphAsset.GetScriptableObject()); |
|||
} |
|||
|
|||
private void UpdateData() |
|||
{ |
|||
// Find all nodes currently being drawn which are no longer in the graph (i.e. deleted)
|
|||
var deletedElements = m_Elements |
|||
.OfType<NodeDrawData>() |
|||
.Where(nd => !graphAsset.graph.GetNodes<INode>().Contains(nd.node)) |
|||
.OfType<GraphElementData>() |
|||
.ToList(); |
|||
|
|||
var deletedEdges = m_Elements.OfType<EdgeDrawData>() |
|||
.Where(ed => !graphAsset.graph.edges.Contains(ed.edge)); |
|||
|
|||
// Find all edges currently being drawn which are no longer in the graph (i.e. deleted)
|
|||
foreach (var edgeData in deletedEdges) |
|||
{ |
|||
// Make sure to disconnect the node, otherwise new connections won't be allowed for the used slots
|
|||
edgeData.output.Disconnect(edgeData); |
|||
edgeData.input.Disconnect(edgeData); |
|||
|
|||
var toNodeGuid = edgeData.edge.inputSlot.nodeGuid; |
|||
var toNode = m_Elements.OfType<NodeDrawData>().FirstOrDefault(nd => nd.node.guid == toNodeGuid); |
|||
if (toNode != null) |
|||
{ |
|||
// Make the input node (i.e. right side of the connection) re-render
|
|||
OnNodeChanged(toNode.node, ModificationScope.Graph); |
|||
} |
|||
|
|||
deletedElements.Add(edgeData); |
|||
} |
|||
|
|||
// Remove all nodes and edges marked for deletion
|
|||
foreach (var deletedElement in deletedElements) |
|||
{ |
|||
m_Elements.Remove(deletedElement); |
|||
} |
|||
|
|||
var addedNodes = new List<NodeDrawData>(); |
|||
|
|||
// Find all new nodes and mark for addition
|
|||
foreach (var node in graphAsset.graph.GetNodes<INode>()) |
|||
{ |
|||
// Check whether node already exists
|
|||
if (m_Elements.OfType<NodeDrawData>().Any(e => e.node == node)) |
|||
continue; |
|||
|
|||
var type = MapType(node.GetType()); |
|||
var nodeData = (NodeDrawData)CreateInstance(type); |
|||
|
|||
node.onModified += OnNodeChanged; |
|||
|
|||
nodeData.Initialize(node); |
|||
addedNodes.Add(nodeData); |
|||
} |
|||
|
|||
// Create edge data for nodes marked for addition
|
|||
var drawableEdges = new List<EdgeDrawData>(); |
|||
foreach (var addedNode in addedNodes) |
|||
{ |
|||
var baseNode = addedNode.node; |
|||
foreach (var slot in baseNode.GetOutputSlots<ISlot>()) |
|||
{ |
|||
var sourceAnchors = addedNode.elements.OfType<AnchorDrawData>(); |
|||
var sourceAnchor = sourceAnchors.FirstOrDefault(x => x.slot == slot); |
|||
|
|||
var edges = baseNode.owner.GetEdges(new SlotReference(baseNode.guid, slot.id)); |
|||
foreach (var edge in edges) |
|||
{ |
|||
var toNode = baseNode.owner.GetNodeFromGuid(edge.inputSlot.nodeGuid); |
|||
var toSlot = toNode.FindInputSlot<ISlot>(edge.inputSlot.slotId); |
|||
var targetNode = addedNodes.FirstOrDefault(x => x.node == toNode); |
|||
var targetAnchors = targetNode.elements.OfType<AnchorDrawData>(); |
|||
var targetAnchor = targetAnchors.FirstOrDefault(x => x.slot == toSlot); |
|||
|
|||
var edgeData = CreateInstance<EdgeDrawData>(); |
|||
edgeData.Initialize(edge); |
|||
edgeData.output = sourceAnchor; |
|||
edgeData.output.Connect(edgeData); |
|||
edgeData.input = targetAnchor; |
|||
edgeData.input.Connect(edgeData); |
|||
drawableEdges.Add(edgeData); |
|||
} |
|||
} |
|||
} |
|||
|
|||
// Add nodes marked for addition
|
|||
m_Elements.AddRange(addedNodes.OfType<GraphElementData>()); |
|||
|
|||
// Find edges in the graph that are not being drawn and create edge data for them
|
|||
foreach (var edge in graphAsset.graph.edges) |
|||
{ |
|||
if (!m_Elements.OfType<EdgeDrawData>().Any(ed => ed.edge == edge)) |
|||
{ |
|||
var fromNode = graphAsset.graph.GetNodeFromGuid(edge.outputSlot.nodeGuid); |
|||
var fromSlot = fromNode.FindOutputSlot<ISlot>(edge.outputSlot.slotId); |
|||
var sourceNode = m_Elements.OfType<NodeDrawData>().FirstOrDefault(x => x.node == fromNode); |
|||
var sourceAnchors = sourceNode.elements.OfType<AnchorDrawData>(); |
|||
var sourceAnchor = sourceAnchors.FirstOrDefault(x => x.slot == fromSlot); |
|||
|
|||
var toNode = graphAsset.graph.GetNodeFromGuid(edge.inputSlot.nodeGuid); |
|||
var toSlot = toNode.FindInputSlot<ISlot>(edge.inputSlot.slotId); |
|||
var targetNode = m_Elements.OfType<NodeDrawData>().FirstOrDefault(x => x.node == toNode); |
|||
var targetAnchors = targetNode.elements.OfType<AnchorDrawData>(); |
|||
var targetAnchor = targetAnchors.FirstOrDefault(x => x.slot == toSlot); |
|||
|
|||
OnNodeChanged(targetNode.node, ModificationScope.Graph); |
|||
|
|||
var edgeData = CreateInstance<EdgeDrawData>(); |
|||
edgeData.Initialize(edge); |
|||
edgeData.output = sourceAnchor; |
|||
edgeData.output.Connect(edgeData); |
|||
edgeData.input = targetAnchor; |
|||
edgeData.input.Connect(edgeData); |
|||
drawableEdges.Add(edgeData); |
|||
} |
|||
} |
|||
|
|||
m_Elements.AddRange(drawableEdges.OfType<GraphElementData>()); |
|||
} |
|||
|
|||
private Type MapType(Type type) |
|||
{ |
|||
Type found = null; |
|||
while (type != null) |
|||
{ |
|||
if (m_DataMapper.TryGetValue(type, out found)) |
|||
break; |
|||
type = type.BaseType; |
|||
} |
|||
return found ?? typeof(NodeDrawData); |
|||
} |
|||
|
|||
protected abstract void AddTypeMappings(); |
|||
|
|||
public void AddTypeMapping(Type node, Type drawData) |
|||
{ |
|||
m_DataMapper[node] = drawData; |
|||
} |
|||
|
|||
public virtual void Initialize(IGraphAsset graphAsset) |
|||
{ |
|||
m_DataMapper.Clear(); |
|||
AddTypeMappings(); |
|||
|
|||
this.graphAsset = graphAsset; |
|||
|
|||
if (graphAsset == null) |
|||
return; |
|||
|
|||
UpdateData(); |
|||
} |
|||
|
|||
public void AddNode(INode node) |
|||
{ |
|||
graphAsset.graph.AddNode(node); |
|||
EditorUtility.SetDirty(graphAsset.GetScriptableObject()); |
|||
UpdateData(); |
|||
} |
|||
|
|||
public void RemoveElements(IEnumerable<NodeDrawData> nodes, IEnumerable<EdgeDrawData> edges) |
|||
{ |
|||
graphAsset.graph.RemoveElements(nodes.Select(x => x.node), edges.Select(x => x.edge)); |
|||
graphAsset.graph.ValidateGraph(); |
|||
EditorUtility.SetDirty(graphAsset.GetScriptableObject()); |
|||
UpdateData(); |
|||
} |
|||
|
|||
public IEnumerable<GraphElementData> elements |
|||
{ |
|||
get { return m_Elements.Union(m_TempElements); } |
|||
} |
|||
|
|||
public void AddTempElement(GraphElementData element) |
|||
{ |
|||
m_TempElements.Add(element); |
|||
} |
|||
|
|||
public void RemoveTempElement(GraphElementData element) |
|||
{ |
|||
m_TempElements.Remove(element); |
|||
} |
|||
|
|||
public void ClearTempElements() |
|||
{ |
|||
m_TempElements.Clear(); |
|||
} |
|||
|
|||
public void Connect(AnchorDrawData left, AnchorDrawData right) |
|||
{ |
|||
if (left && right) |
|||
{ |
|||
graphAsset.graph.Connect(left.slot.slotReference, right.slot.slotReference); |
|||
EditorUtility.SetDirty(graphAsset.GetScriptableObject()); |
|||
UpdateData(); |
|||
} |
|||
} |
|||
|
|||
public void AddElement(GraphElementData element) |
|||
{ |
|||
throw new ArgumentException("Not supported on Serializable Graph, data comes from data store"); |
|||
} |
|||
|
|||
public void RemoveElement(GraphElementData element) |
|||
{ |
|||
throw new ArgumentException("Not supported on Serializable Graph, data comes from data store"); |
|||
} |
|||
} |
|||
} |
|
|||
using System; |
|||
using RMGUI.GraphView; |
|||
using UnityEngine; |
|||
using UnityEngine.Graphing; |
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace UnityEditor.Graphing.Drawing |
|||
{ |
|||
public abstract class AbstractGraphEditWindow<T> : EditorWindow, ISerializationCallbackReceiver where T : class, IGraphAsset |
|||
{ |
|||
public RenderTexture rt; |
|||
|
|||
[NonSerialized] |
|||
private T m_LastSelection; |
|||
|
|||
[SerializeField] |
|||
private ScriptableObject m_LastSelectedGraphSerialized; |
|||
|
|||
private bool shouldRepaint |
|||
{ |
|||
get |
|||
{ |
|||
return m_LastSelection != null && m_LastSelection.shouldRepaint; |
|||
} |
|||
} |
|||
|
|||
protected GraphView graphView |
|||
{ |
|||
get { return m_GraphView; } |
|||
} |
|||
|
|||
private GraphView m_GraphView; |
|||
|
|||
public virtual AbstractGraphDataSource CreateDataSource() |
|||
{ |
|||
return CreateInstance<SerializedGraphDataSource>(); |
|||
} |
|||
|
|||
public virtual GraphView CreateGraphView() |
|||
{ |
|||
return new SerializableGraphView(); |
|||
} |
|||
|
|||
void OnEnable() |
|||
{ |
|||
m_GraphView = CreateGraphView(); |
|||
m_GraphView.name = "Graph View"; |
|||
var source = CreateDataSource(); |
|||
source.Initialize(m_LastSelection); |
|||
m_GraphView.dataSource = source; |
|||
m_GraphView.StretchToParentSize(); |
|||
|
|||
windowRoot.AddChild(m_GraphView); |
|||
} |
|||
|
|||
void OnDisable() |
|||
{ |
|||
windowRoot.ClearChildren(); |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
if (shouldRepaint) |
|||
Repaint(); |
|||
} |
|||
|
|||
void OnSelectionChange() |
|||
{ |
|||
if (Selection.activeObject == null || !EditorUtility.IsPersistent(Selection.activeObject)) |
|||
return; |
|||
|
|||
if (Selection.activeObject is ScriptableObject) |
|||
{ |
|||
var selection = Selection.activeObject as T; |
|||
if (selection != m_LastSelection) |
|||
{ |
|||
var graph = selection.graph; |
|||
graph.OnEnable(); |
|||
graph.ValidateGraph(); |
|||
m_LastSelection = selection; |
|||
|
|||
var source = CreateDataSource(); |
|||
source.Initialize(m_LastSelection); |
|||
m_GraphView.dataSource = source; |
|||
|
|||
m_GraphView.StretchToParentSize(); |
|||
Repaint(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/* |
|||
|
|||
|
|||
private void ConvertSelectionToSubGraph() |
|||
{ |
|||
if (m_Canvas.dataSource == null) |
|||
return; |
|||
|
|||
var dataSource = m_Canvas.dataSource as GraphDataSource; |
|||
if (dataSource == null) |
|||
return; |
|||
|
|||
var asset = dataSource.graphAsset; |
|||
if (asset == null) |
|||
return; |
|||
|
|||
var targetGraph = asset.graph; |
|||
if (targetGraph == null) |
|||
return; |
|||
|
|||
if (!m_Canvas.selection.Any()) |
|||
return; |
|||
|
|||
var serialzied = CopySelected.SerializeSelectedElements(m_Canvas); |
|||
var deserialized = CopySelected.DeserializeSelectedElements(serialzied); |
|||
if (deserialized == null) |
|||
return; |
|||
|
|||
string path = EditorUtility.SaveFilePanelInProject("Save subgraph", "New SubGraph", "ShaderSubGraph", ""); |
|||
path = path.Replace(Application.dataPath, "Assets"); |
|||
if (path.Length == 0) |
|||
return; |
|||
|
|||
var graphAsset = CreateInstance<MaterialSubGraphAsset>(); |
|||
graphAsset.name = Path.GetFileName(path); |
|||
graphAsset.PostCreate(); |
|||
|
|||
var graph = graphAsset.subGraph; |
|||
if (graphAsset.graph == null) |
|||
return; |
|||
|
|||
var nodeGuidMap = new Dictionary<Guid, Guid>(); |
|||
foreach (var node in deserialized.GetNodes<INode>()) |
|||
{ |
|||
var oldGuid = node.guid; |
|||
var newGuid = node.RewriteGuid(); |
|||
nodeGuidMap[oldGuid] = newGuid; |
|||
graph.AddNode(node); |
|||
} |
|||
|
|||
// remap outputs to the subgraph
|
|||
var inputEdgeNeedsRemap = new List<IEdge>(); |
|||
var outputEdgeNeedsRemap = new List<IEdge>(); |
|||
foreach (var edge in deserialized.edges) |
|||
{ |
|||
var outputSlot = edge.outputSlot; |
|||
var inputSlot = edge.inputSlot; |
|||
|
|||
Guid remappedOutputNodeGuid; |
|||
Guid remappedInputNodeGuid; |
|||
var outputRemapExists = nodeGuidMap.TryGetValue(outputSlot.nodeGuid, out remappedOutputNodeGuid); |
|||
var inputRemapExists = nodeGuidMap.TryGetValue(inputSlot.nodeGuid, out remappedInputNodeGuid); |
|||
|
|||
// pasting nice internal links!
|
|||
if (outputRemapExists && inputRemapExists) |
|||
{ |
|||
var outputSlotRef = new SlotReference(remappedOutputNodeGuid, outputSlot.slotId); |
|||
var inputSlotRef = new SlotReference(remappedInputNodeGuid, inputSlot.slotId); |
|||
graph.Connect(outputSlotRef, inputSlotRef); |
|||
} |
|||
// one edge needs to go to outside world
|
|||
else if (outputRemapExists) |
|||
{ |
|||
inputEdgeNeedsRemap.Add(edge); |
|||
} |
|||
else if (inputRemapExists) |
|||
{ |
|||
outputEdgeNeedsRemap.Add(edge); |
|||
} |
|||
} |
|||
|
|||
// we do a grouping here as the same output can
|
|||
// point to multiple inputs
|
|||
var uniqueOutputs = outputEdgeNeedsRemap.GroupBy(edge => edge.outputSlot); |
|||
var inputsNeedingConnection = new List<KeyValuePair<IEdge, IEdge>>(); |
|||
foreach (var group in uniqueOutputs) |
|||
{ |
|||
var inputNode = graph.inputNode; |
|||
var slotId = inputNode.AddSlot(); |
|||
|
|||
var outputSlotRef = new SlotReference(inputNode.guid, slotId); |
|||
|
|||
foreach (var edge in group) |
|||
{ |
|||
var newEdge = graph.Connect(outputSlotRef, new SlotReference(nodeGuidMap[edge.inputSlot.nodeGuid], edge.inputSlot.slotId)); |
|||
inputsNeedingConnection.Add(new KeyValuePair<IEdge, IEdge>(edge, newEdge)); |
|||
} |
|||
} |
|||
|
|||
var uniqueInputs = inputEdgeNeedsRemap.GroupBy(edge => edge.inputSlot); |
|||
var outputsNeedingConnection = new List<KeyValuePair<IEdge, IEdge>>(); |
|||
foreach (var group in uniqueInputs) |
|||
{ |
|||
var outputNode = graph.outputNode; |
|||
var slotId = outputNode.AddSlot(); |
|||
|
|||
var inputSlotRef = new SlotReference(outputNode.guid, slotId); |
|||
|
|||
foreach (var edge in group) |
|||
{ |
|||
var newEdge = graph.Connect(new SlotReference(nodeGuidMap[edge.outputSlot.nodeGuid], edge.outputSlot.slotId), inputSlotRef); |
|||
outputsNeedingConnection.Add(new KeyValuePair<IEdge, IEdge>(edge, newEdge)); |
|||
} |
|||
} |
|||
AssetDatabase.CreateAsset(graphAsset, path); |
|||
|
|||
var subGraphNode = new SubGraphNode(); |
|||
targetGraph.AddNode(subGraphNode); |
|||
subGraphNode.subGraphAsset = graphAsset; |
|||
|
|||
foreach (var edgeMap in inputsNeedingConnection) |
|||
{ |
|||
targetGraph.Connect(edgeMap.Key.outputSlot, new SlotReference(subGraphNode.guid, edgeMap.Value.outputSlot.slotId)); |
|||
} |
|||
foreach (var edgeMap in outputsNeedingConnection) |
|||
{ |
|||
targetGraph.Connect(new SlotReference(subGraphNode.guid, edgeMap.Value.inputSlot.slotId), edgeMap.Key.inputSlot); |
|||
} |
|||
|
|||
var toDelete = m_Canvas.selection.Where(x => x is DrawableNode).ToList(); |
|||
dataSource.DeleteElements(toDelete); |
|||
|
|||
targetGraph.ValidateGraph(); |
|||
m_Canvas.ReloadData(); |
|||
m_Canvas.Invalidate(); |
|||
m_Canvas.selection.Clear(); |
|||
|
|||
var toSelect = m_Canvas.elements.OfType<DrawableNode>().FirstOrDefault(x => x.m_Node == subGraphNode); |
|||
if (toSelect != null) |
|||
{ |
|||
toSelect.selected = true; |
|||
m_Canvas.selection.Add(toSelect); |
|||
} |
|||
m_Canvas.Repaint(); |
|||
} |
|||
|
|||
private void Rebuild() |
|||
{ |
|||
if (m_Canvas == null || m_LastSelection == null) |
|||
return; |
|||
|
|||
m_DataSource.graphAsset = m_LastSelection; |
|||
m_Canvas.ReloadData(); |
|||
}*/ |
|||
|
|||
/* void OnGUI() |
|||
{ |
|||
m_HostWindow = this; |
|||
if (m_Canvas == null) |
|||
{ |
|||
InitializeCanvas(); |
|||
} |
|||
|
|||
if (m_LastSelection == null || m_LastSelection.graph == null) |
|||
{ |
|||
GUILayout.Label("No Graph selected"); |
|||
return; |
|||
} |
|||
|
|||
m_Canvas.OnGUI(this, new Rect(0, 0, position.width - 250, position.height)); |
|||
|
|||
if (GUI.Button(new Rect(position.width - 250, 0, 250, 50), "Convert to Sub-Graph")) |
|||
ConvertSelectionToSubGraph(); |
|||
|
|||
if (GUI.Button(new Rect(position.width - 250, 70, 250, 50), "Export")) |
|||
Export(false); |
|||
|
|||
|
|||
if (GUI.Button(new Rect(position.width - 250, 140, 250, 50), "Export - quick")) |
|||
Export(true); |
|||
|
|||
|
|||
EditorGUI.ObjectField(new Rect(position.width - 250, 210, 250, 50), rt, typeof(RenderTexture), false); |
|||
}*/ |
|||
|
|||
|
|||
/*public void RenderOptions(MaterialGraph graph) |
|||
{ |
|||
EditorGUILayout.BeginHorizontal(); |
|||
GUILayout.FlexibleSpace(); |
|||
|
|||
EditorGUILayout.BeginVertical(); |
|||
m_ScrollPos = GUILayout.BeginScrollView(m_ScrollPos, EditorStyles.textArea, GUILayout.width(250), GUILayout.ExpandHeight(true)); |
|||
graph.materialOptions.DoGUI(); |
|||
EditorGUILayout.Separator(); |
|||
|
|||
m_NodeExpanded = MaterialGraphStyles.Header("Selected", m_NodeExpanded); |
|||
if (m_NodeExpanded) |
|||
DrawableMaterialNode.OnGUI(m_Canvas.selection); |
|||
|
|||
GUILayout.EndScrollView(); |
|||
if (GUILayout.Button("Export")) |
|||
m_DataSource.Export(false); |
|||
|
|||
GUILayout.EndVertical(); |
|||
EditorGUILayout.EndHorizontal(); |
|||
}*/ |
|||
|
|||
public void OnBeforeSerialize() |
|||
{ |
|||
var o = m_LastSelection as ScriptableObject; |
|||
if (o != null) |
|||
m_LastSelectedGraphSerialized = o; |
|||
} |
|||
|
|||
public void OnAfterDeserialize() |
|||
{ |
|||
if (m_LastSelectedGraphSerialized != null) |
|||
m_LastSelection = m_LastSelectedGraphSerialized as T; |
|||
|
|||
m_LastSelectedGraphSerialized = null; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 322c21863b8e2024e85c4f0e0dee0b94 |
|||
timeCreated: 1476711073 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: ef89c3094f656ca419096cec59d816af |
|||
folderAsset: yes |
|||
timeCreated: 1478076357 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 4e974459130fa5f4f9899e83b1e752d5 |
|||
folderAsset: yes |
|||
timeCreated: 1476708485 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 8aa4176733f149446bd0c55036656e30 |
|||
folderAsset: yes |
|||
timeCreated: 1476708981 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 49d342e281c5c0842a37adc523aca716 |
|||
folderAsset: yes |
|||
timeCreated: 1477989669 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using RMGUI.GraphView; |
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace UnityEditor.Graphing.Drawing |
|||
{ |
|||
[StyleSheet("Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles/SerializableGraph.uss")] |
|||
public class SerializableGraphView : GraphView |
|||
{ |
|||
public SerializableGraphView() |
|||
{ |
|||
// Shortcut handler to delete elements
|
|||
var dictionary = new Dictionary<Event, ShortcutDelegate>(); |
|||
dictionary[Event.KeyboardEvent("delete")] = DeleteSelection; |
|||
AddManipulator(new ShortcutHandler(dictionary)); |
|||
|
|||
AddManipulator(new ContentZoomer()); |
|||
AddManipulator(new ContentDragger()); |
|||
AddManipulator(new RectangleSelector()); |
|||
AddManipulator(new SelectionDragger()); |
|||
AddManipulator(new ClickSelector()); |
|||
AddDecorator(new GridBackground()); |
|||
|
|||
dataMapper[typeof(NodeDrawData)] = typeof(NodeDrawer); |
|||
dataMapper[typeof(HeaderDrawData)] = typeof(HeaderDrawer); |
|||
} |
|||
|
|||
private EventPropagation DeleteSelection() |
|||
{ |
|||
var nodalViewData = dataSource as AbstractGraphDataSource; |
|||
if (nodalViewData == null) |
|||
return EventPropagation.Stop; |
|||
|
|||
nodalViewData.RemoveElements( |
|||
selection.OfType<NodeDrawer>().Select(x => x.dataProvider as NodeDrawData), |
|||
selection.OfType<Edge>().Select(x => x.dataProvider as EdgeDrawData) |
|||
); |
|||
|
|||
return EventPropagation.Stop; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 0f06001291d4e32479f71557abf52944 |
|||
timeCreated: 1476710182 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine.Graphing; |
|||
|
|||
namespace UnityEditor.Graphing.Drawing |
|||
{ |
|||
public class SerializedGraphDataSource : AbstractGraphDataSource |
|||
{ |
|||
protected SerializedGraphDataSource() |
|||
{} |
|||
|
|||
protected override void AddTypeMappings() |
|||
{ |
|||
AddTypeMapping(typeof(SerializableNode), typeof(NodeDrawData)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: d7466f2e9546aaa409ea2125e36a0342 |
|||
timeCreated: 1476711073 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 0bfdedf8c1122ce43a248236ef367ab3 |
|||
folderAsset: yes |
|||
timeCreated: 1476713799 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections.Generic; |
|||
|
|||
namespace UnityEditor.Graphing.Util |
|||
{ |
|||
public static class UIUtilities |
|||
{ |
|||
public static bool ItemsReferenceEquals<T>(this IList<T> first, IList<T> second) |
|||
{ |
|||
if (first.Count != second.Count) |
|||
{ |
|||
return false; |
|||
} |
|||
|
|||
for (int i = 0; i < first.Count; i++) |
|||
{ |
|||
if (!ReferenceEquals(first[i], second[i])) |
|||
{ |
|||
return false; |
|||
} |
|||
} |
|||
|
|||
return true; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 60ebb16e194464bce8a4975da8fd215a |
|||
timeCreated: 1476782702 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 891cd61cb6bbad6438e2bae6bdc5b60c |
|||
folderAsset: yes |
|||
timeCreated: 1475651642 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 7887abd697bcde24596ec729cd7e3c3e |
|||
folderAsset: yes |
|||
timeCreated: 1476708485 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.IO; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using RMGUI.GraphView; |
|||
using UnityEditor.Graphing.Drawing; |
|||
using UnityEngine; |
|||
using UnityEngine.Graphing; |
|||
using UnityEngine.MaterialGraph; |
|||
using UnityEngine.RMGUI; |
|||
using Edge = RMGUI.GraphView.Edge; |
|||
using Object = UnityEngine.Object; |
|||
|
|||
namespace UnityEditor.MaterialGraph.Drawing |
|||
{ |
|||
[StyleSheet("Assets/UnityShaderEditor/Editor/Drawing/Styles/MaterialGraph.uss")] |
|||
public class MaterialGraphView : SerializableGraphView |
|||
{ |
|||
public MaterialGraphView() |
|||
{ |
|||
AddManipulator(new ContextualMenu(DoContextMenu)); |
|||
|
|||
dataMapper[typeof(MaterialNodeDrawData)] = typeof(MaterialNodeDrawer); |
|||
dataMapper[typeof(AnchorDrawData)] = typeof(NodeAnchor); |
|||
dataMapper[typeof(EdgeData)] = typeof(Edge); |
|||
|
|||
var dictionary = new Dictionary<Event, ShortcutDelegate>(); |
|||
dictionary[Event.KeyboardEvent("^F1")] = Export; |
|||
AddManipulator(new ShortcutHandler(dictionary)); |
|||
} |
|||
|
|||
public virtual bool CanAddToNodeMenu(Type type) |
|||
{ |
|||
return true; |
|||
} |
|||
|
|||
protected EventPropagation DoContextMenu(Event evt, Object customData) |
|||
{ |
|||
var gm = new GenericMenu(); |
|||
foreach (Type type in Assembly.GetAssembly(typeof(AbstractMaterialNode)).GetTypes()) |
|||
{ |
|||
if (type.IsClass && !type.IsAbstract && (type.IsSubclassOf(typeof(AbstractMaterialNode)))) |
|||
{ |
|||
var attrs = type.GetCustomAttributes(typeof(TitleAttribute), false) as TitleAttribute[]; |
|||
if (attrs != null && attrs.Length > 0 && CanAddToNodeMenu(type)) |
|||
{ |
|||
gm.AddItem(new GUIContent(attrs[0].m_Title), false, AddNode, new AddNodeCreationObject(type, evt.mousePosition)); |
|||
} |
|||
} |
|||
} |
|||
|
|||
//gm.AddSeparator("");
|
|||
// gm.AddItem(new GUIContent("Convert To/SubGraph"), true, ConvertSelectionToSubGraph);
|
|||
gm.ShowAsContext(); |
|||
return EventPropagation.Stop; |
|||
} |
|||
|
|||
private class AddNodeCreationObject : object |
|||
{ |
|||
public Vector2 m_Pos; |
|||
public readonly Type m_Type; |
|||
|
|||
public AddNodeCreationObject(Type t, Vector2 p) |
|||
{ |
|||
m_Type = t; |
|||
m_Pos = p; |
|||
} |
|||
}; |
|||
|
|||
private void AddNode(object obj) |
|||
{ |
|||
var posObj = obj as AddNodeCreationObject; |
|||
if (posObj == null) |
|||
return; |
|||
|
|||
INode node; |
|||
try |
|||
{ |
|||
node = Activator.CreateInstance(posObj.m_Type) as INode; |
|||
} |
|||
catch (Exception e) |
|||
{ |
|||
Debug.LogWarningFormat("Could not construct instance of: {0} - {1}", posObj.m_Type, e); |
|||
return; |
|||
} |
|||
|
|||
if (node == null) |
|||
return; |
|||
var drawstate = node.drawState; |
|||
drawstate.position = new Rect(posObj.m_Pos.x, posObj.m_Pos.y, 0, 0); |
|||
node.drawState = drawstate; |
|||
|
|||
var graphDataSource = dataSource as AbstractGraphDataSource; |
|||
graphDataSource.AddNode(node); |
|||
} |
|||
|
|||
public EventPropagation Export() |
|||
{ |
|||
var path = EditorUtility.SaveFilePanelInProject("Export shader to file...", "shader.shader", "shader", "Enter file name"); |
|||
|
|||
var ds = dataSource as AbstractGraphDataSource; |
|||
if (ds != null && !string.IsNullOrEmpty(path)) |
|||
{ |
|||
ExportShader(ds.graphAsset as MaterialGraphAsset, path); |
|||
} |
|||
else |
|||
EditorUtility.DisplayDialog("Export Shader Error", "Cannot export shader", "Ok"); |
|||
|
|||
return EventPropagation.Stop; |
|||
} |
|||
|
|||
public static Shader ExportShader(MaterialGraphAsset graphAsset, string path) |
|||
{ |
|||
if (graphAsset == null) |
|||
return null; |
|||
|
|||
var materialGraph = graphAsset.graph as PixelGraph; |
|||
if (materialGraph == null) |
|||
return null; |
|||
|
|||
List<PropertyGenerator.TextureInfo> configuredTextures; |
|||
var shaderString = materialGraph.masterNode.GetShader(new MaterialOptions(), GenerationMode.ForReals, out configuredTextures); |
|||
File.WriteAllText(path, shaderString); |
|||
AssetDatabase.Refresh(); // Investigate if this is optimal
|
|||
|
|||
var shader = AssetDatabase.LoadAssetAtPath(path, typeof(Shader)) as Shader; |
|||
if (shader == null) |
|||
return null; |
|||
|
|||
var shaderImporter = AssetImporter.GetAtPath(path) as ShaderImporter; |
|||
if (shaderImporter == null) |
|||
return null; |
|||
|
|||
var textureNames = new List<string>(); |
|||
var textures = new List<Texture>(); |
|||
foreach (var textureInfo in configuredTextures.Where(x => x.modifiable == TexturePropertyChunk.ModifiableState.Modifiable)) |
|||
{ |
|||
var texture = EditorUtility.InstanceIDToObject(textureInfo.textureId) as Texture; |
|||
if (texture == null) |
|||
continue; |
|||
textureNames.Add(textureInfo.name); |
|||
textures.Add(texture); |
|||
} |
|||
shaderImporter.SetDefaultTextures(textureNames.ToArray(), textures.ToArray()); |
|||
|
|||
textureNames.Clear(); |
|||
textures.Clear(); |
|||
foreach (var textureInfo in configuredTextures.Where(x => x.modifiable == TexturePropertyChunk.ModifiableState.NonModifiable)) |
|||
{ |
|||
var texture = EditorUtility.InstanceIDToObject(textureInfo.textureId) as Texture; |
|||
if (texture == null) |
|||
continue; |
|||
textureNames.Add(textureInfo.name); |
|||
textures.Add(texture); |
|||
} |
|||
shaderImporter.SetNonModifiableTextures(textureNames.ToArray(), textures.ToArray()); |
|||
|
|||
shaderImporter.SaveAndReimport(); |
|||
|
|||
return shaderImporter.GetShader(); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: e0bbd4215e018eb4bbdb28bfaa7eabdd |
|||
timeCreated: 1476707367 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 55206ee1a8b96e84bb8a8a0bc7c58bd0 |
|||
folderAsset: yes |
|||
timeCreated: 1475748087 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 562bd27a5e73fc64d80a1d9d936ffbd5, type: 3} |
|||
m_Name: New Shader Graph |
|||
m_EditorClassIdentifier: |
|||
m_MaterialGraph: |
|||
m_MaterialOptions: |
|||
m_SrcBlend: 0 |
|||
m_DstBlend: 1 |
|||
m_CullMode: 0 |
|||
m_ZTest: 2 |
|||
m_ZWrite: 0 |
|||
m_RenderQueue: 1 |
|||
m_RenderType: 0 |
|||
m_ShadowPass: 0 |
|||
m_FullForwardShadows: 0 |
|||
m_NoAmbient: 0 |
|||
m_NoVertexLights: 0 |
|||
m_NoLightmaps: 0 |
|||
m_NoDirLightmap: 0 |
|||
m_NoForwardAdd: 0 |
|||
m_ApproxView: 0 |
|||
m_HalfAsView: 0 |
|||
m_Expanded: 0 |
|||
m_PixelGraph: |
|||
m_SerializableNodes: |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.PixelShaderNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"c835c2eb-0a54-43de-b581-1b283b208eef\",\n |
|||
\ \"m_Name\": \"PixelMaster\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": 236.0,\n \"y\": 93.0,\n \"width\": |
|||
-236.0,\n \"height\": -93.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\\\": \\\"Albedo\\\",\\n \\\"m_SlotType\\\": |
|||
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 2,\\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\\\": |
|||
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\\\": 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\\\": |
|||
\\\"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\\\": 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\\\": \\\"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\\\": 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\\\": \\\"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\\\": 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\\\": \\\"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\\\": 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\\\": \\\"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\\\": 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\\\": |
|||
\\\"Alpha\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_SerializedLightFunction\": {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.PBRMetalicLightFunction\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{}\"\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.ColorNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"4ea9595c-885f-4073-a7f7-af240cae0405\",\n |
|||
\ \"m_Name\": \"ColorNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -1020.91259765625,\n \"y\": -118.99871826171875,\n |
|||
\ \"width\": 152.0,\n \"height\": 139.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\\\": |
|||
\\\"Color\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 1,\\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\\\": |
|||
\\\"Color\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_PropertyName\": \"\",\n \"m_Description\": \"\",\n \"m_Exposed\": |
|||
1,\n \"m_Color\": {\n \"r\": 1.0,\n \"g\": 0.0,\n \"b\": |
|||
0.0,\n \"a\": 1.0\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.ColorNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"057ee10d-238b-4ad2-ba2f-7ef35a1034a0\",\n |
|||
\ \"m_Name\": \"ColorNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -1023.91259765625,\n \"y\": 39.00128173828125,\n |
|||
\ \"width\": 211.0,\n \"height\": 181.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\\\": |
|||
\\\"Color\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 1,\\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\\\": |
|||
\\\"Color\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_PropertyName\": \"\",\n \"m_Description\": \"\",\n \"m_Exposed\": |
|||
1,\n \"m_Color\": {\n \"r\": 0.9264705777168274,\n \"g\": |
|||
0.19074395298957826,\n \"b\": 0.19074395298957826,\n \"a\": |
|||
0.0\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"af0c9ce8-5cb8-4b59-b543-5dcc4f900137\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -1034.91259765625,\n \"y\": 192.00128173828126,\n |
|||
\ \"width\": 603.0,\n \"height\": -307.0\n }\n |
|||
\ },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": |
|||
{\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": |
|||
\\\"RGBA\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 1,\\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\\\": |
|||
\\\"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\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\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\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n \"m_PropertyName\": |
|||
\"\",\n \"m_Description\": \"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": |
|||
\"{\\n \\\"texture\\\": {\\n \\\"fileID\\\": 10906,\\n \\\"guid\\\": |
|||
\\\"0000000000000000f000000000000000\\\",\\n \\\"type\\\": 0\\n }\\n}\",\n |
|||
\ \"m_TextureType\": 0\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.SubGraphNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"1b4853a9-f60e-4b74-a56f-faa39bd3c2e3\",\n |
|||
\ \"m_Name\": \"SubGraph\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -394.0,\n \"y\": 111.0,\n \"width\": |
|||
394.0,\n \"height\": -111.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": -1,\\n \\\"m_DisplayName\\\": \\\"Input 1(4)\\\",\\n |
|||
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
1,\\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}\"\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 \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 1,\\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\\\": 1,\\n \\\"m_DisplayName\\\": |
|||
\\\"Output 1(4)\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 1,\\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\\\": \\\"Output1\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1,\n \"m_SerializedSubGraph\": \"{\\n \\\"subGraph\\\": |
|||
{\\n \\\"fileID\\\": 11400000,\\n \\\"guid\\\": \\\"8c60a30380fb1434597b0c3993758852\\\",\\n |
|||
\ \\\"type\\\": 2\\n }\\n}\"\n}" |
|||
m_SerializableEdges: |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": |
|||
\"4ea9595c-885f-4073-a7f7-af240cae0405\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": -1,\n \"m_NodeGUIDSerialized\": \"1b4853a9-f60e-4b74-a56f-faa39bd3c2e3\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"af0c9ce8-5cb8-4b59-b543-5dcc4f900137\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": -2,\n \"m_NodeGUIDSerialized\": \"1b4853a9-f60e-4b74-a56f-faa39bd3c2e3\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"1b4853a9-f60e-4b74-a56f-faa39bd3c2e3\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 3,\n \"m_NodeGUIDSerialized\": \"c835c2eb-0a54-43de-b581-1b283b208eef\"\n |
|||
\ }\n}" |
|||
m_Name: |
|
|||
fileFormatVersion: 2 |
|||
guid: f60ac9e5e8c629d44aa0a9f0f810fbbd |
|||
timeCreated: 1475478432 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 562bd27a5e73fc64d80a1d9d936ffbd5, type: 3} |
|||
m_Name: blah |
|||
m_EditorClassIdentifier: |
|||
m_MaterialGraph: |
|||
m_MaterialOptions: |
|||
m_SrcBlend: 0 |
|||
m_DstBlend: 1 |
|||
m_CullMode: 0 |
|||
m_ZTest: 2 |
|||
m_ZWrite: 0 |
|||
m_RenderQueue: 1 |
|||
m_RenderType: 0 |
|||
m_ShadowPass: 0 |
|||
m_FullForwardShadows: 0 |
|||
m_NoAmbient: 0 |
|||
m_NoVertexLights: 0 |
|||
m_NoLightmaps: 0 |
|||
m_NoDirLightmap: 0 |
|||
m_NoForwardAdd: 0 |
|||
m_ApproxView: 0 |
|||
m_HalfAsView: 0 |
|||
m_Expanded: 0 |
|||
m_PixelGraph: |
|||
m_SerializableNodes: |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.PixelShaderNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"e5f33fa6-beb3-4bac-bb88-820fc7df4a8f\",\n |
|||
\ \"m_Name\": \"PixelMaster\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": 0.0,\n \"y\": 0.0,\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\\\": \\\"Albedo\\\",\\n \\\"m_SlotType\\\": |
|||
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 2,\\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\\\": |
|||
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\\\": 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\\\": |
|||
\\\"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\\\": 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\\\": \\\"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\\\": 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\\\": \\\"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\\\": 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\\\": \\\"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\\\": 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\\\": \\\"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\\\": 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\\\": |
|||
\\\"Alpha\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_SerializedLightFunction\": {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.PBRMetalicLightFunction\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{}\"\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"8f2995c0-956f-4d3c-a2a1-d326a8b2ca2f\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -495.0,\n \"y\": -378.0,\n \"width\": |
|||
-196.0,\n \"height\": 455.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"RGBA\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\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\\\": \\\"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\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\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\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\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}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"921f9c09-60c4-49fe-8a1f-e74528b68723\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -528.0,\n \"y\": 265.0,\n \"width\": |
|||
21.0,\n \"height\": 60.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"RGBA\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\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\\\": \\\"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\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\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\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\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}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.ColorNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"6ae3a0e2-f1f0-4d9a-a6aa-20078a916e6d\",\n |
|||
\ \"m_Name\": \"ColorNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -852.0,\n \"y\": 85.0,\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\\\": \\\"Color\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\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\\\": \\\"Color\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\": |
|||
\"\",\n \"m_Exposed\": 1,\n \"m_Color\": {\n \"r\": 1.0,\n |
|||
\ \"g\": 0.31617647409439089,\n \"b\": 0.31617647409439089,\n |
|||
\ \"a\": 0.0\n }\n}" |
|||
m_SerializableEdges: |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"8f2995c0-956f-4d3c-a2a1-d326a8b2ca2f\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"e5f33fa6-beb3-4bac-bb88-820fc7df4a8f\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"921f9c09-60c4-49fe-8a1f-e74528b68723\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"e5f33fa6-beb3-4bac-bb88-820fc7df4a8f\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": |
|||
\"6ae3a0e2-f1f0-4d9a-a6aa-20078a916e6d\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 3,\n \"m_NodeGUIDSerialized\": \"e5f33fa6-beb3-4bac-bb88-820fc7df4a8f\"\n |
|||
\ }\n}" |
|||
m_Name: |
|
|||
fileFormatVersion: 2 |
|||
guid: 7a113c2246bb1f646974359108cfcaa2 |
|||
timeCreated: 1470917887 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 562bd27a5e73fc64d80a1d9d936ffbd5, type: 3} |
|||
m_Name: new |
|||
m_EditorClassIdentifier: |
|||
m_MaterialGraph: |
|||
m_MaterialOptions: |
|||
m_SrcBlend: 0 |
|||
m_DstBlend: 1 |
|||
m_CullMode: 0 |
|||
m_ZTest: 2 |
|||
m_ZWrite: 0 |
|||
m_RenderQueue: 1 |
|||
m_RenderType: 0 |
|||
m_ShadowPass: 0 |
|||
m_FullForwardShadows: 0 |
|||
m_NoAmbient: 0 |
|||
m_NoVertexLights: 0 |
|||
m_NoLightmaps: 0 |
|||
m_NoDirLightmap: 0 |
|||
m_NoForwardAdd: 0 |
|||
m_ApproxView: 0 |
|||
m_HalfAsView: 0 |
|||
m_Expanded: 0 |
|||
m_PixelGraph: |
|||
m_SerializableNodes: |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.PixelShaderNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"8539a9b8-41b7-4729-94ac-6f25b1d5efa3\",\n |
|||
\ \"m_Name\": \"PixelMaster\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": 0.0,\n \"y\": 0.0,\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\\\": \\\"Albedo\\\",\\n \\\"m_SlotType\\\": |
|||
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 2,\\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\\\": |
|||
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\\\": 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\\\": |
|||
\\\"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\\\": 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\\\": \\\"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\\\": 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\\\": \\\"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\\\": 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\\\": \\\"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\\\": 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\\\": \\\"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\\\": 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\\\": |
|||
\\\"Alpha\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_SerializedLightFunction\": {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.PBRMetalicLightFunction\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{}\"\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"3c5c7d01-2fd6-44a8-b3e7-148190b0ecde\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -620.0,\n \"y\": -121.0,\n \"width\": |
|||
22.0,\n \"height\": 263.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"RGBA\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\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\\\": \\\"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\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\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\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n \"m_PropertyName\": |
|||
\"\",\n \"m_Description\": \"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": |
|||
\"{\\n \\\"texture\\\": {\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": |
|||
\\\"e0ac3a897e9bf5d40ac1eb6a44a7ab21\\\",\\n \\\"type\\\": 3\\n }\\n}\",\n |
|||
\ \"m_TextureType\": 0\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"16289dee-283c-42df-8430-70d7e1342db3\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -513.0,\n \"y\": 338.0,\n \"width\": |
|||
112.0,\n \"height\": 69.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"RGBA\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\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\\\": \\\"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\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\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\\\": 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_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\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\\\": |
|||
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\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\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\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n \"m_PropertyName\": |
|||
\"\",\n \"m_Description\": \"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": |
|||
\"{\\n \\\"texture\\\": {\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": |
|||
\\\"556373d2abe91394795e2c7b920330f0\\\",\\n \\\"type\\\": 3\\n }\\n}\",\n |
|||
\ \"m_TextureType\": 3\n}" |
|||
m_SerializableEdges: |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"3c5c7d01-2fd6-44a8-b3e7-148190b0ecde\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"8539a9b8-41b7-4729-94ac-6f25b1d5efa3\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"16289dee-283c-42df-8430-70d7e1342db3\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"8539a9b8-41b7-4729-94ac-6f25b1d5efa3\"\n |
|||
\ }\n}" |
|||
m_Name: |
|
|||
fileFormatVersion: 2 |
|||
guid: eea9c141cf904494f8038d7148c31f9b |
|||
timeCreated: 1470912443 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 562bd27a5e73fc64d80a1d9d936ffbd5, type: 3} |
|||
m_Name: something |
|||
m_EditorClassIdentifier: |
|||
m_MaterialGraph: |
|||
m_MaterialOptions: |
|||
m_SrcBlend: 0 |
|||
m_DstBlend: 1 |
|||
m_CullMode: 0 |
|||
m_ZTest: 2 |
|||
m_ZWrite: 0 |
|||
m_RenderQueue: 1 |
|||
m_RenderType: 0 |
|||
m_ShadowPass: 0 |
|||
m_FullForwardShadows: 0 |
|||
m_NoAmbient: 0 |
|||
m_NoVertexLights: 0 |
|||
m_NoLightmaps: 0 |
|||
m_NoDirLightmap: 0 |
|||
m_NoForwardAdd: 0 |
|||
m_ApproxView: 0 |
|||
m_HalfAsView: 0 |
|||
m_Expanded: 0 |
|||
m_PixelGraph: |
|||
m_SerializableNodes: [] |
|||
m_SerializableEdges: [] |
|||
m_Name: |
|
|||
fileFormatVersion: 2 |
|||
guid: 77154e36df4ac4c88b3ede1e4169e2e9 |
|||
timeCreated: 1477575321 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
部分文件因为文件数量过多而无法显示
撰写
预览
正在加载...
取消
保存
Reference in new issue