Singularity/Library/PackageCache/com.unity.render-pipelines..../Samples~/URPPackageSamples/SharedAssets/Shaders/URPMainLight_Graph.shadersu...
2024-05-06 11:45:45 -07:00

258 lines
5.9 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "056831b519e143a2a6a0f05cbf4cc216",
"m_Properties": [],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "fd8b3c8aa32b48629b805f498ed4bf73"
}
],
"m_Nodes": [
{
"m_Id": "37c72c8c062f416d81108dfe1c85ee49"
},
{
"m_Id": "233a7697ec3a45b0bb25165ee4757529"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "233a7697ec3a45b0bb25165ee4757529"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "37c72c8c062f416d81108dfe1c85ee49"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "233a7697ec3a45b0bb25165ee4757529"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "37c72c8c062f416d81108dfe1c85ee49"
},
"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": "37c72c8c062f416d81108dfe1c85ee49"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "233a7697ec3a45b0bb25165ee4757529",
"m_Group": {
"m_Id": ""
},
"m_Name": "GetMainLight (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -257.99993896484377,
"y": 0.000014066696166992188,
"width": 207.9999542236328,
"height": 302.0
}
},
"m_Slots": [
{
"m_Id": "ba1f55de530c4cc5a211db349ba58fba"
},
{
"m_Id": "79f0a3ada63f4176b8f3b6edfd0db015"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 1,
"m_FunctionName": "GetMainLight",
"m_FunctionSource": "",
"m_FunctionBody": "#if SHADERGRAPH_PREVIEW\n\tDirection = half3(0.5, 0.5, 0);\n\tColor = 1;\n#else\n\tLight light = GetMainLight();\n\tDirection = light.direction;\n\tColor = light.color;\n#endif"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "2368208ba39f420dbb7a1c348a7dad9a",
"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": "37c72c8c062f416d81108dfe1c85ee49",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "7f411c3087b14008a6690b11d8b78b2b"
},
{
"m_Id": "2368208ba39f420dbb7a1c348a7dad9a"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "79f0a3ada63f4176b8f3b6edfd0db015",
"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": "7f411c3087b14008a6690b11d8b78b2b",
"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": "ba1f55de530c4cc5a211db349ba58fba",
"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": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "fd8b3c8aa32b48629b805f498ed4bf73",
"m_Name": "",
"m_ChildObjectList": []
}