Tim Cooper
9 年前
当前提交
af2e75ab
共有 35 个文件被更改,包括 987 次插入 和 681 次删除
-
1UnityProject/Assets/UnityShaderEditor/Editor/Source/AssetCallbacks/CreateShaderGraph.cs
-
106UnityProject/Assets/UnityShaderEditor/Editor/Source/BaseMaterialGraph.cs
-
14UnityProject/Assets/UnityShaderEditor/Editor/Source/Drawing/DrawableMaterialNode.cs
-
18UnityProject/Assets/UnityShaderEditor/Editor/Source/Drawing/MaterialGraphDataSource.cs
-
15UnityProject/Assets/UnityShaderEditor/Editor/Source/Drawing/MaterialWindow.cs
-
8UnityProject/Assets/UnityShaderEditor/Editor/Source/Drawing/NodeAnchor.cs
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Drawing/NullInputProxy.cs
-
55UnityProject/Assets/UnityShaderEditor/Editor/Source/MaterialGraph.cs
-
5UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/AddNode.cs
-
875UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/BaseMaterialNode.cs
-
17UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/Function2Input.cs
-
39UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PixelShaderNode.cs
-
61UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PropertyNode.cs
-
26UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/Slot.cs
-
53UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/Vector4Node.cs
-
41UnityProject/Assets/UnityShaderEditor/Editor/Source/PixelGraph.cs
-
47UnityProject/Assets/UnityShaderEditor/Editor/Source/Util/NodeUtils.cs
-
30UnityProject/Assets/UnityShaderEditor/Editor/Source/Util/ShaderGenerator.cs
-
30UnityProject/Assets/UnityShaderEditor/Editor/Source/Edge.cs
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Edge.cs.meta
-
8UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/DrawMode.cs
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/DrawMode.cs.meta
-
9UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/Precision.cs
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/Precision.cs.meta
-
8UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PreviewMode.cs
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PreviewMode.cs.meta
-
15UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PreviewProperty.cs
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PreviewProperty.cs.meta
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PropertyType.cs
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PropertyType.cs.meta
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/Slot.cs.meta
-
11UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/TitleAttribute.cs
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/TitleAttribute.cs.meta
-
44UnityProject/Assets/UnityShaderEditor/Editor/Source/SlotReference.cs
-
12UnityProject/Assets/UnityShaderEditor/Editor/Source/SlotReference.cs.meta
875
UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/BaseMaterialNode.cs
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
using System; |
|||
using UnityEngine; |
|||
|
|||
namespace UnityEditor.MaterialGraph |
|||
{ |
|||
[Serializable] |
|||
public class Edge |
|||
{ |
|||
[SerializeField] |
|||
private SlotReference m_OutputSlot; |
|||
[SerializeField] |
|||
private SlotReference m_InputSlot; |
|||
|
|||
public Edge(SlotReference outputSlot, SlotReference inputSlot) |
|||
{ |
|||
m_OutputSlot = outputSlot; |
|||
m_InputSlot = inputSlot; |
|||
} |
|||
|
|||
public SlotReference outputSlot |
|||
{ |
|||
get { return m_OutputSlot; } |
|||
} |
|||
|
|||
public SlotReference inputSlot |
|||
{ |
|||
get { return m_InputSlot; } |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 6b610a05c25f54d4c90f7ebf82696481 |
|||
timeCreated: 1463576280 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
namespace UnityEditor.MaterialGraph |
|||
{ |
|||
public enum DrawMode |
|||
{ |
|||
Full, |
|||
Collapsed |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: b11454ef93315fe4abbcb38de383ef76 |
|||
timeCreated: 1463576280 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
namespace UnityEditor.MaterialGraph |
|||
{ |
|||
public enum Precision |
|||
{ |
|||
Default = 0, // half
|
|||
Full = 1, |
|||
Fixed = 2, |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 3b4e2f7da2357424ab19865ce322e8be |
|||
timeCreated: 1463576280 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
namespace UnityEditor.MaterialGraph |
|||
{ |
|||
public enum PreviewMode |
|||
{ |
|||
Preview2D, |
|||
Preview3D |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 084b4ac1c80bf4746bb42f8d424c058f |
|||
timeCreated: 1463576280 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
|
|||
namespace UnityEditor.MaterialGraph |
|||
{ |
|||
public class PreviewProperty |
|||
{ |
|||
public string m_Name; |
|||
public PropertyType m_PropType; |
|||
|
|||
public Color m_Color; |
|||
public Texture2D m_Texture; |
|||
public Vector4 m_Vector4; |
|||
public float m_Float; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: b61922288469cb5438e9b4118b11a4d9 |
|||
timeCreated: 1463576280 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
namespace UnityEditor.MaterialGraph |
|||
{ |
|||
public enum PropertyType |
|||
{ |
|||
Color, |
|||
Texture2D, |
|||
Float, |
|||
Vector2, |
|||
Vector3, |
|||
Vector4 |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 7a76ce662d41461449975822790f4da8 |
|||
timeCreated: 1463576280 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 7d998d7fbd75b97459f63fb4931d14b5 |
|||
timeCreated: 1463560120 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace UnityEditor.MaterialGraph |
|||
{ |
|||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue)] |
|||
public class TitleAttribute : Attribute |
|||
{ |
|||
public string m_Title; |
|||
public TitleAttribute(string title) { m_Title = title; } |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: e13b8c11babf46743a112e399a5d68fb |
|||
timeCreated: 1463576280 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using UnityEngine; |
|||
|
|||
namespace UnityEditor.MaterialGraph |
|||
{ |
|||
[Serializable] |
|||
public class SlotReference : ISerializationCallbackReceiver |
|||
{ |
|||
[SerializeField] |
|||
private string m_SlotName; |
|||
|
|||
[NonSerialized] |
|||
private Guid m_NodeGUID; |
|||
|
|||
[SerializeField] |
|||
private string m_NodeGUIDSerialized; |
|||
|
|||
public SlotReference(Guid nodeGuid, string slotName) |
|||
{ |
|||
m_NodeGUID = nodeGuid; |
|||
m_SlotName = slotName; |
|||
} |
|||
|
|||
public Guid nodeGuid |
|||
{ |
|||
get { return m_NodeGUID; } |
|||
} |
|||
|
|||
public string slotName |
|||
{ |
|||
get { return m_SlotName; } |
|||
} |
|||
|
|||
public void OnBeforeSerialize() |
|||
{ |
|||
m_NodeGUIDSerialized = m_NodeGUID.ToString(); |
|||
} |
|||
|
|||
public void OnAfterDeserialize() |
|||
{ |
|||
m_NodeGUID = new Guid(m_NodeGUIDSerialized); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: a178e14960be0e944b4652535f2d12e4 |
|||
timeCreated: 1463576280 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue