UnityGame/Library/PackageCache/com.unity.shadergraph/Samples~/Common/Subgraphs/BranchOnRP.shadersubgraph

875 lines
20 KiB
Plaintext
Raw Normal View History

2024-10-27 10:53:47 +03:00
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "f78bde6e92154139a095e02c5151dc2a",
"m_Properties": [
{
"m_Id": "87ac1db1ee2f453297f3ff1d78c587d1"
},
{
"m_Id": "0b2cf23f07f6488cb13619f8e40d9e7d"
},
{
"m_Id": "335edbd0fee343cea692f778677d7884"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "24f3f939269c438ea3af718d861918d3"
}
],
"m_Nodes": [
{
"m_Id": "7c12c993426449c1ae0c159d5538b4fe"
},
{
"m_Id": "afe5d8268c15482ebf16f2556de7d86a"
},
{
"m_Id": "7b64ccc730c3490c890cba7e835f3784"
},
{
"m_Id": "931daa7798d74c2ea12b996dd7e13d58"
},
{
"m_Id": "8c88064341384182a513adf18573a6ef"
},
{
"m_Id": "2ad77dc214934035adddb96ec870e910"
},
{
"m_Id": "c404395aa6854594ac6b5d9fc69aaf55"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "2ad77dc214934035adddb96ec870e910"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7c12c993426449c1ae0c159d5538b4fe"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7b64ccc730c3490c890cba7e835f3784"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c404395aa6854594ac6b5d9fc69aaf55"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "8c88064341384182a513adf18573a6ef"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2ad77dc214934035adddb96ec870e910"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "8c88064341384182a513adf18573a6ef"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c404395aa6854594ac6b5d9fc69aaf55"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "931daa7798d74c2ea12b996dd7e13d58"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c404395aa6854594ac6b5d9fc69aaf55"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "afe5d8268c15482ebf16f2556de7d86a"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2ad77dc214934035adddb96ec870e910"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c404395aa6854594ac6b5d9fc69aaf55"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2ad77dc214934035adddb96ec870e910"
},
"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": "7c12c993426449c1ae0c159d5538b4fe"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "08c0937f2fd94536a7b1676b33cb5b50",
"m_Id": 1,
"m_DisplayName": "True",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "True",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector4ShaderProperty",
"m_ObjectId": "0b2cf23f07f6488cb13619f8e40d9e7d",
"m_Guid": {
"m_GuidSerialized": "0daf393c-6ff1-4225-b757-cba396c6c10a"
},
"m_Name": "HDRP",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "HDRP",
"m_DefaultReferenceName": "_HDRP",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
"m_ObjectId": "0be68bff1aac4efea4b2fa19f63c0521",
"m_Id": 0,
"m_DisplayName": "Predicate",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Predicate",
"m_StageCapability": 3,
"m_Value": false,
"m_DefaultValue": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
"m_ObjectId": "1ad78fd6a16f401cb2b5c1d9ed933a22",
"m_Id": 1,
"m_DisplayName": "HDRP",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "HDRP",
"m_StageCapability": 3,
"m_Value": false,
"m_DefaultValue": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "24f3f939269c438ea3af718d861918d3",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "87ac1db1ee2f453297f3ff1d78c587d1"
},
{
"m_Id": "0b2cf23f07f6488cb13619f8e40d9e7d"
},
{
"m_Id": "335edbd0fee343cea692f778677d7884"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BranchNode",
"m_ObjectId": "2ad77dc214934035adddb96ec870e910",
"m_Group": {
"m_Id": ""
},
"m_Name": "Branch",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -188.0,
"y": 0.0,
"width": 172.0,
"height": 142.0
}
},
"m_Slots": [
{
"m_Id": "0be68bff1aac4efea4b2fa19f63c0521"
},
{
"m_Id": "08c0937f2fd94536a7b1676b33cb5b50"
},
{
"m_Id": "678e7690264f45eb9cff6b180a5228a3"
},
{
"m_Id": "cda44222e8bd41f98b17ed5ee07bc74e"
}
],
"synonyms": [
"switch",
"if",
"else"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector4ShaderProperty",
"m_ObjectId": "335edbd0fee343cea692f778677d7884",
"m_Guid": {
"m_GuidSerialized": "d61847e6-6294-4220-80b3-7877b2e27088"
},
"m_Name": "BIRP",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "BIRP",
"m_DefaultReferenceName": "_BIRP",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
"m_ObjectId": "4f7d637f2e284690897d728c94f4a0d0",
"m_Id": 2,
"m_DisplayName": "BiRP",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "BiRP",
"m_StageCapability": 3,
"m_Value": false,
"m_DefaultValue": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
"m_ObjectId": "504f3d93c34f47cfa2cce3e7f8ea9a8c",
"m_Id": 0,
"m_DisplayName": "URP",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "URP",
"m_StageCapability": 3,
"m_Value": false,
"m_DefaultValue": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "678e7690264f45eb9cff6b180a5228a3",
"m_Id": 2,
"m_DisplayName": "False",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "False",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "694056ee52034c94835068b046cc1105",
"m_Id": 1,
"m_DisplayName": "True",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "True",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "6b26708c7dd74a0397de3af1cebe18e0",
"m_Id": 0,
"m_DisplayName": "BIRP",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "7b64ccc730c3490c890cba7e835f3784",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -510.0,
"y": 170.0,
"width": 108.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "b836172e33a3474ba7049e87d32c354d"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "0b2cf23f07f6488cb13619f8e40d9e7d"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "7c12c993426449c1ae0c159d5538b4fe",
"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": "e22c1c5a70a247bfab6f261ddfb62e0f"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector4ShaderProperty",
"m_ObjectId": "87ac1db1ee2f453297f3ff1d78c587d1",
"m_Guid": {
"m_GuidSerialized": "d1b6d73f-9b9c-48a4-a5f9-73533ece99e4"
},
"m_Name": "URP",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "URP",
"m_DefaultReferenceName": "_URP",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "8c88064341384182a513adf18573a6ef",
"m_Group": {
"m_Id": ""
},
"m_Name": "CurrentActiveRP (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -650.0,
"y": -1.0,
"width": 248.0,
"height": 142.0
}
},
"m_Slots": [
{
"m_Id": "504f3d93c34f47cfa2cce3e7f8ea9a8c"
},
{
"m_Id": "1ad78fd6a16f401cb2b5c1d9ed933a22"
},
{
"m_Id": "4f7d637f2e284690897d728c94f4a0d0"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 1,
"m_FunctionName": "CurrentActiveRP",
"m_FunctionSource": "",
"m_FunctionBody": "URP = false;\nHDRP = false;\nBiRP = false;\n\n#if SHADEROPTIONS_PRE_EXPOSITION //#if defined(UNITY_HEADER_HD_INCLUDED)\nHDRP = true;\n\r\n#elif defined(UNIVERSAL_PIPELINE_CORE_INCLUDED)\nURP = true;\n\n#elif defined(BUILTIN_PIPELINE_CORE_INCLUDED)\nBiRP = true;\n\n#endif"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "931daa7798d74c2ea12b996dd7e13d58",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -504.0,
"y": 204.0,
"width": 102.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "6b26708c7dd74a0397de3af1cebe18e0"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "335edbd0fee343cea692f778677d7884"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "a12081359d18491e82db5f5685822c36",
"m_Id": 2,
"m_DisplayName": "False",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "False",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "ac7e801bc66c42b3807f7c7d2f2c3a1a",
"m_Id": 3,
"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,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "afe5d8268c15482ebf16f2556de7d86a",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -307.0,
"y": 60.0,
"width": 100.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "f077a521f9d140148a003963900daa13"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "87ac1db1ee2f453297f3ff1d78c587d1"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "b836172e33a3474ba7049e87d32c354d",
"m_Id": 0,
"m_DisplayName": "HDRP",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BranchNode",
"m_ObjectId": "c404395aa6854594ac6b5d9fc69aaf55",
"m_Group": {
"m_Id": ""
},
"m_Name": "Branch",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -377.0,
"y": 107.0,
"width": 172.0,
"height": 142.0
}
},
"m_Slots": [
{
"m_Id": "fec775de86974b5f91ae49aaf9891a88"
},
{
"m_Id": "694056ee52034c94835068b046cc1105"
},
{
"m_Id": "a12081359d18491e82db5f5685822c36"
},
{
"m_Id": "ac7e801bc66c42b3807f7c7d2f2c3a1a"
}
],
"synonyms": [
"switch",
"if",
"else"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "cda44222e8bd41f98b17ed5ee07bc74e",
"m_Id": 3,
"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,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "e22c1c5a70a247bfab6f261ddfb62e0f",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "f077a521f9d140148a003963900daa13",
"m_Id": 0,
"m_DisplayName": "URP",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
"m_ObjectId": "fec775de86974b5f91ae49aaf9891a88",
"m_Id": 0,
"m_DisplayName": "Predicate",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Predicate",
"m_StageCapability": 3,
"m_Value": false,
"m_DefaultValue": false
}