{ "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.GraphData", "m_ObjectId": "daad105b100847aabd25f461eb15d79b", "m_Properties": [], "m_Keywords": [], "m_Dropdowns": [], "m_CategoryData": [ { "m_Id": "c22c9c427fc64e00acf91be053cb6ca3" } ], "m_Nodes": [ { "m_Id": "bcf59baaf6084a3188a9bbb069dee991" }, { "m_Id": "3ebe3924340d4010bc361709e662f6d7" } ], "m_GroupDatas": [], "m_StickyNoteDatas": [], "m_Edges": [ { "m_OutputSlot": { "m_Node": { "m_Id": "3ebe3924340d4010bc361709e662f6d7" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { "m_Id": "bcf59baaf6084a3188a9bbb069dee991" }, "m_SlotId": 1 } }, { "m_OutputSlot": { "m_Node": { "m_Id": "3ebe3924340d4010bc361709e662f6d7" }, "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { "m_Id": "bcf59baaf6084a3188a9bbb069dee991" }, "m_SlotId": 2 } } ], "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": "bcf59baaf6084a3188a9bbb069dee991" }, "m_ActiveTargets": [] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", "m_ObjectId": "02eec3befa5b4aa6973ac1772931b379", "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.Vector3MaterialSlot", "m_ObjectId": "31e9d4509d1e49118179252c0f0b2baf", "m_Id": 0, "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": "3ebe3924340d4010bc361709e662f6d7", "m_Group": { "m_Id": "" }, "m_Name": "MainLightDirection (Custom Function)", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": -242.0, "y": -31.0, "width": 262.0, "height": 302.0 } }, "m_Slots": [ { "m_Id": "31e9d4509d1e49118179252c0f0b2baf" }, { "m_Id": "4b93e834e3924299b8f5a18324290a34" } ], "synonyms": [ "code", "HLSL" ], "m_Precision": 0, "m_PreviewExpanded": true, "m_DismissedVersion": 0, "m_PreviewMode": 2, "m_CustomColors": { "m_SerializableColors": [] }, "m_SourceType": 1, "m_FunctionName": "MainLightDirection", "m_FunctionSource": "", "m_FunctionBody": "#if SHADERGRAPH_PREVIEW\r\n Direction = half3(0.5, 0.5, 0);\r\n Color = half4(1, 0, 0, 1);\r\n#else\r\n Light light = GetMainLight();\r\n Direction = light.direction;\r\n Color = light.color;\r\n#endif" } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", "m_ObjectId": "4b93e834e3924299b8f5a18324290a34", "m_Id": 1, "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.Vector3MaterialSlot", "m_ObjectId": "532f2a3c638b484da1d6e1f7ad2805a0", "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": [] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode", "m_ObjectId": "bcf59baaf6084a3188a9bbb069dee991", "m_Group": { "m_Id": "" }, "m_Name": "Output", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": 20.0, "y": -31.0, "width": 121.0, "height": 77.0 } }, "m_Slots": [ { "m_Id": "02eec3befa5b4aa6973ac1772931b379" }, { "m_Id": "532f2a3c638b484da1d6e1f7ad2805a0" } ], "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.CategoryData", "m_ObjectId": "c22c9c427fc64e00acf91be053cb6ca3", "m_Name": "", "m_ChildObjectList": [] }