416 lines
9.3 KiB
Plaintext
Raw Normal View History

2024-11-01 16:55:46 +08:00
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "53cab5682378416981219c3606e538a8",
"m_Properties": [],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "72828e54a81f4b959c85dae8824614d6"
}
],
"m_Nodes": [
{
"m_Id": "03de4cf7124f455ebb2bfb33814c3f47"
},
{
"m_Id": "110b0152fe3344ebb59158232e32f1c2"
},
{
"m_Id": "cddb59c3484f4d4f97cbbf099cf53df8"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "110b0152fe3344ebb59158232e32f1c2"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "03de4cf7124f455ebb2bfb33814c3f47"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "110b0152fe3344ebb59158232e32f1c2"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "03de4cf7124f455ebb2bfb33814c3f47"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "110b0152fe3344ebb59158232e32f1c2"
},
"m_SlotId": 4
},
"m_InputSlot": {
"m_Node": {
"m_Id": "03de4cf7124f455ebb2bfb33814c3f47"
},
"m_SlotId": 3
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "cddb59c3484f4d4f97cbbf099cf53df8"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "110b0152fe3344ebb59158232e32f1c2"
},
"m_SlotId": 0
}
}
],
"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": "03de4cf7124f455ebb2bfb33814c3f47"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "03656ad5947d4959a67145ef174e7f39",
"m_Id": 0,
"m_DisplayName": "WorldPos",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "WorldPos",
"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.SubGraphOutputNode",
"m_ObjectId": "03de4cf7124f455ebb2bfb33814c3f47",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -106.0,
"y": 0.0,
"width": 123.5,
"height": 125.0
}
},
"m_Slots": [
{
"m_Id": "6616f8e05ec6404b9e4bc4d6a63dae5d"
},
{
"m_Id": "fd14e025f6e1490095927bb3362b8dce"
},
{
"m_Id": "a97c523cc27a424dbe05793328ecc4c0"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "03ee80b1883e4eaf87f770f45c86f35f",
"m_Id": 2,
"m_DisplayName": "Direction",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Direction",
"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.CustomFunctionNode",
"m_ObjectId": "110b0152fe3344ebb59158232e32f1c2",
"m_Group": {
"m_Id": ""
},
"m_Name": "MainLight (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -371.9999694824219,
"y": 0.000011444091796875,
"width": 211.00003051757813,
"height": 326.0000305175781
}
},
"m_Slots": [
{
"m_Id": "03656ad5947d4959a67145ef174e7f39"
},
{
"m_Id": "03ee80b1883e4eaf87f770f45c86f35f"
},
{
"m_Id": "75ee151b116c485988a5bf3d0a8a573a"
},
{
"m_Id": "2b7cab90bab4464c8ee505ba6438efe6"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 0,
"m_FunctionName": "MainLight",
"m_FunctionSource": "92d9c521aff00e840a7e6fdcff436622",
"m_FunctionBody": "Enter function body here..."
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "2b7cab90bab4464c8ee505ba6438efe6",
"m_Id": 4,
"m_DisplayName": "Shadow",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Shadow",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "55d3991b4b144eaeb0c283b7d6a7d61e",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"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.Vector3MaterialSlot",
"m_ObjectId": "6616f8e05ec6404b9e4bc4d6a63dae5d",
"m_Id": 1,
"m_DisplayName": "Direction",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Direction",
"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.CategoryData",
"m_ObjectId": "72828e54a81f4b959c85dae8824614d6",
"m_Name": "",
"m_ChildObjectList": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "75ee151b116c485988a5bf3d0a8a573a",
"m_Id": 3,
"m_DisplayName": "Color",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Color",
"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.Vector1MaterialSlot",
"m_ObjectId": "a97c523cc27a424dbe05793328ecc4c0",
"m_Id": 3,
"m_DisplayName": "ShadowAtten",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "ShadowAtten",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.PositionNode",
"m_ObjectId": "cddb59c3484f4d4f97cbbf099cf53df8",
"m_Group": {
"m_Id": ""
},
"m_Name": "Position",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -653.0,
"y": 0.0,
"width": 208.0,
"height": 314.5
}
},
"m_Slots": [
{
"m_Id": "55d3991b4b144eaeb0c283b7d6a7d61e"
}
],
"synonyms": [
"location"
],
"m_Precision": 1,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 2,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Space": 2,
"m_PositionSource": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "fd14e025f6e1490095927bb3362b8dce",
"m_Id": 2,
"m_DisplayName": "Color",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Color",
"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": []
}