您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

704 行
17 KiB

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "c22765af6803411eb76a4f5bd97bfb37",
"m_Properties": [
{
"m_Id": "04ef8a07298944ada89f97ff8fb6a6a9"
},
{
"m_Id": "41b425fdc3764fc088114a56e8d13a24"
},
{
"m_Id": "effdc3a24e2646a7ad037b903a53a1f7"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "49e51d7d288043468031157d5426f687"
}
],
"m_Nodes": [
{
"m_Id": "465566306f2a494a95019186348cbedc"
},
{
"m_Id": "4c7f1581c6a3415b9eb1427d8a342ae8"
},
{
"m_Id": "04af26dd250d4191a53745a76674dd57"
},
{
"m_Id": "71bc24d9794e441a856428e2911e4757"
},
{
"m_Id": "dd621be3fb4749eabdcb5a6b9c66107e"
},
{
"m_Id": "7ebe427b9b79453498c6e9c47abb24e0"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "04af26dd250d4191a53745a76674dd57"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "4c7f1581c6a3415b9eb1427d8a342ae8"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "4c7f1581c6a3415b9eb1427d8a342ae8"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "465566306f2a494a95019186348cbedc"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "4c7f1581c6a3415b9eb1427d8a342ae8"
},
"m_SlotId": 5
},
"m_InputSlot": {
"m_Node": {
"m_Id": "465566306f2a494a95019186348cbedc"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "71bc24d9794e441a856428e2911e4757"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "4c7f1581c6a3415b9eb1427d8a342ae8"
},
"m_SlotId": 6
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7ebe427b9b79453498c6e9c47abb24e0"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "4c7f1581c6a3415b9eb1427d8a342ae8"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "dd621be3fb4749eabdcb5a6b9c66107e"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "4c7f1581c6a3415b9eb1427d8a342ae8"
},
"m_SlotId": 3
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Sub Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "465566306f2a494a95019186348cbedc"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "029c669d708c41d8b3aa4437a4fa8f20",
"m_Id": 3,
"m_DisplayName": "Frame",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Frame",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "04af26dd250d4191a53745a76674dd57",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -306.0,
"y": -70.0,
"width": 151.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "9acbab9025484b46bf0febcbf8fb100b"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "04ef8a07298944ada89f97ff8fb6a6a9"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
"m_ObjectId": "04ef8a07298944ada89f97ff8fb6a6a9",
"m_Guid": {
"m_GuidSerialized": "51ae1cb7-dffb-4a19-ac6e-40646c7ac24c"
},
"m_Name": "VAT:Position",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "VAT:Position",
"m_DefaultReferenceName": "_VAT_Position",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
"m_Guid": ""
},
"isMainTexture": false,
"useTilingAndOffset": false,
"m_Modifiable": true,
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "2a70fc5b096b4b5a81a2c243b22fa90c",
"m_Id": 1,
"m_DisplayName": "Position",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Position",
"m_StageCapability": 1,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
"m_ObjectId": "41b425fdc3764fc088114a56e8d13a24",
"m_Guid": {
"m_GuidSerialized": "f5917bf9-b346-472d-9a67-76523a6f28d2"
},
"m_Name": "VAT:Normal",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "VAT:Normal",
"m_DefaultReferenceName": "_VAT_Normal",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
"m_Guid": ""
},
"isMainTexture": false,
"useTilingAndOffset": false,
"m_Modifiable": true,
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "465566306f2a494a95019186348cbedc",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 204.0,
"y": -94.0,
"width": 97.0,
"height": 101.0
}
},
"m_Slots": [
{
"m_Id": "2a70fc5b096b4b5a81a2c243b22fa90c"
},
{
"m_Id": "cb967cba7e6e47f493f775830469ed22"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "49e51d7d288043468031157d5426f687",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "04ef8a07298944ada89f97ff8fb6a6a9"
},
{
"m_Id": "41b425fdc3764fc088114a56e8d13a24"
},
{
"m_Id": "effdc3a24e2646a7ad037b903a53a1f7"
}
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "4c7f1581c6a3415b9eb1427d8a342ae8",
"m_Group": {
"m_Id": ""
},
"m_Name": "VAT_Load (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -119.9999771118164,
"y": -82.99996948242188,
"width": 239.9999542236328,
"height": 165.99993896484376
}
},
"m_Slots": [
{
"m_Id": "58a8980740564d7194301f83ed581f28"
},
{
"m_Id": "8d89cce444cf467da3cb35834471887e"
},
{
"m_Id": "71d4be4099e54dcf850254329e4152c0"
},
{
"m_Id": "029c669d708c41d8b3aa4437a4fa8f20"
},
{
"m_Id": "5c54f35d04c04af3a4c53746b0eb8d4a"
},
{
"m_Id": "ea1451bb6f4a47de9d65625cee74c186"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 1,
"m_FunctionName": "VAT_Load",
"m_FunctionSource": "",
"m_FunctionBody": "OutPosition = VAT_Position.Load(int3(VertexID,Frame,0)).xyz;\nOutNormal = VAT_Normal.Load(int3(VertexID,Frame,0)).xyz;\n"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
"m_ObjectId": "58a8980740564d7194301f83ed581f28",
"m_Id": 0,
"m_DisplayName": "VAT_Position",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "VAT_Position",
"m_StageCapability": 3,
"m_BareResource": true,
"m_Texture": {
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
"m_Guid": ""
},
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "5c54f35d04c04af3a4c53746b0eb8d4a",
"m_Id": 1,
"m_DisplayName": "OutPosition",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "OutPosition",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "71bc24d9794e441a856428e2911e4757",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -306.0,
"y": -40.0,
"width": 146.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "fe1cc1e3c90e46f2bb33a66249f380ab"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "41b425fdc3764fc088114a56e8d13a24"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "71d4be4099e54dcf850254329e4152c0",
"m_Id": 2,
"m_DisplayName": "VertexID",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "VertexID",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.VertexIDNode",
"m_ObjectId": "7ebe427b9b79453498c6e9c47abb24e0",
"m_Group": {
"m_Id": ""
},
"m_Name": "Vertex ID",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -315.0,
"y": 9.0,
"width": 99.0,
"height": 77.0
}
},
"m_Slots": [
{
"m_Id": "f688e4efa411410380c10752635faea7"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
"m_ObjectId": "8d89cce444cf467da3cb35834471887e",
"m_Id": 6,
"m_DisplayName": "VAT_Normal",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "VAT_Normal",
"m_StageCapability": 3,
"m_BareResource": true,
"m_Texture": {
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
"m_Guid": ""
},
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot",
"m_ObjectId": "9acbab9025484b46bf0febcbf8fb100b",
"m_Id": 0,
"m_DisplayName": "VAT:Position",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "c5081fa5930544689529ee0868d0dd64",
"m_Id": 0,
"m_DisplayName": "Frame",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "cb967cba7e6e47f493f775830469ed22",
"m_Id": 2,
"m_DisplayName": "Normal",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Normal",
"m_StageCapability": 1,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "dd621be3fb4749eabdcb5a6b9c66107e",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -308.0,
"y": 107.0,
"width": 124.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "c5081fa5930544689529ee0868d0dd64"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "effdc3a24e2646a7ad037b903a53a1f7"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "ea1451bb6f4a47de9d65625cee74c186",
"m_Id": 5,
"m_DisplayName": "OutNormal",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "OutNormal",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "effdc3a24e2646a7ad037b903a53a1f7",
"m_Guid": {
"m_GuidSerialized": "b24f7761-559d-42e5-a8ea-f2512d5aa01e"
},
"m_Name": "Frame",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Frame",
"m_DefaultReferenceName": "_Frame",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 0.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "f688e4efa411410380c10752635faea7",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 1,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot",
"m_ObjectId": "fe1cc1e3c90e46f2bb33a66249f380ab",
"m_Id": 0,
"m_DisplayName": "VAT:Normal",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}