Files
Convention-Unity/Convention/[Art]/SubGraphs/DepthDiffRemap.shadersubgraph

677 lines
15 KiB
Plaintext
Raw Normal View History

2025-07-24 15:41:28 +08:00
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "b9cb35939f0348ffa63022ea75f97dc5",
"m_Properties": [
{
"m_Id": "ca694166b9a647c19eddedbfe07245c5"
},
{
"m_Id": "193624483ff048a9ad546f20a3e56a15"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "b5c8a503e55a470f89ed9fcf5b79f1e8"
}
],
"m_Nodes": [
{
"m_Id": "32671c3f35df4552b294b569ccd9476d"
},
{
"m_Id": "bd081b1a90b243fb9fdea1f2892525aa"
},
{
"m_Id": "50abf01fc3ef464997d311585cd35d65"
},
{
"m_Id": "34c415c13db443779d61cc6ac612147c"
},
{
"m_Id": "f9dd103a2a5847b0844470325a7216bc"
},
{
"m_Id": "55b8fefc701c4153a564e81fba354593"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "34c415c13db443779d61cc6ac612147c"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "f9dd103a2a5847b0844470325a7216bc"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "50abf01fc3ef464997d311585cd35d65"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "34c415c13db443779d61cc6ac612147c"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "55b8fefc701c4153a564e81fba354593"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "32671c3f35df4552b294b569ccd9476d"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "bd081b1a90b243fb9fdea1f2892525aa"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "f9dd103a2a5847b0844470325a7216bc"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "f9dd103a2a5847b0844470325a7216bc"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "55b8fefc701c4153a564e81fba354593"
},
"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": "32671c3f35df4552b294b569ccd9476d"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "0617e91554fb41f7979277807d8a2352",
"m_Id": 1,
"m_DisplayName": "Result",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Result",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "1361778807534c0fb6fe6c70d1037202",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"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.Vector1MaterialSlot",
"m_ObjectId": "1767d2ba2fec4f0694270aec0ad1ff28",
"m_Id": 2,
"m_DisplayName": "Y",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Y",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"Y"
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "193624483ff048a9ad546f20a3e56a15",
"m_Guid": {
"m_GuidSerialized": "dae16e9c-4abc-446f-aee8-36d695dd5f77"
},
"m_Name": "DepthDiff",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "DepthDiff",
"m_DefaultReferenceName": "_DepthDiff",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "2044fb07811645bebb58bde1548aaf87",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"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.SubGraphOutputNode",
"m_ObjectId": "32671c3f35df4552b294b569ccd9476d",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 72.0,
"y": -39.0,
"width": 121.0,
"height": 77.0
}
},
"m_Slots": [
{
"m_Id": "0617e91554fb41f7979277807d8a2352"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2Node",
"m_ObjectId": "34c415c13db443779d61cc6ac612147c",
"m_Group": {
"m_Id": ""
},
"m_Name": "Vector 2",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -640.0,
"y": -12.0,
"width": 128.0,
"height": 101.0
}
},
"m_Slots": [
{
"m_Id": "ce547ae6b0f64c55a8955730112136e1"
},
{
"m_Id": "1767d2ba2fec4f0694270aec0ad1ff28"
},
{
"m_Id": "4d85a9eef8674f2a8f533e6ec79b2642"
}
],
"synonyms": [
"2",
"v2",
"vec2",
"float2"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Value": {
"x": 0.0,
"y": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "4d85a9eef8674f2a8f533e6ec79b2642",
"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
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "50abf01fc3ef464997d311585cd35d65",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -824.0,
"y": 69.0,
"width": 129.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "9352089a91f54244ace179a073b90b53"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "ca694166b9a647c19eddedbfe07245c5"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SaturateNode",
"m_ObjectId": "55b8fefc701c4153a564e81fba354593",
"m_Group": {
"m_Id": ""
},
"m_Name": "Saturate",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -115.0,
"y": -39.0,
"width": 128.0,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "1361778807534c0fb6fe6c70d1037202"
},
{
"m_Id": "d1bd45556298436abad7ec98eb6664f6"
}
],
"synonyms": [
"clamp"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "6c586efa135141b4885a773f93d0432b",
"m_Id": 1,
"m_DisplayName": "In Min Max",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "InMinMax",
"m_StageCapability": 3,
"m_Value": {
"x": -1.0,
"y": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "7d1733278eb24875b12dfee1b839747c",
"m_Id": 0,
"m_DisplayName": "DepthDiff",
"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.Vector1MaterialSlot",
"m_ObjectId": "9352089a91f54244ace179a073b90b53",
"m_Id": 0,
"m_DisplayName": "MaxDepth",
"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.CategoryData",
"m_ObjectId": "b5c8a503e55a470f89ed9fcf5b79f1e8",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "193624483ff048a9ad546f20a3e56a15"
},
{
"m_Id": "ca694166b9a647c19eddedbfe07245c5"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "bd081b1a90b243fb9fdea1f2892525aa",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -592.0,
"y": -87.0,
"width": 126.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "7d1733278eb24875b12dfee1b839747c"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "193624483ff048a9ad546f20a3e56a15"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "c50a447c7b244549810167e1c38b8380",
"m_Id": 2,
"m_DisplayName": "Out Min Max",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "OutMinMax",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "ca694166b9a647c19eddedbfe07245c5",
"m_Guid": {
"m_GuidSerialized": "10f7117e-adea-4d3c-a4fc-547b40982f90"
},
"m_Name": "MaxDepth",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "MaxDepth",
"m_DefaultReferenceName": "_MaxDepth",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 1.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "ce547ae6b0f64c55a8955730112136e1",
"m_Id": 1,
"m_DisplayName": "X",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "X",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "d1bd45556298436abad7ec98eb6664f6",
"m_Id": 1,
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "d1c14eeb77da4463bd80be133287f4c7",
"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.RemapNode",
"m_ObjectId": "f9dd103a2a5847b0844470325a7216bc",
"m_Group": {
"m_Id": ""
},
"m_Name": "Remap",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -349.0,
"y": -39.0,
"width": 186.0,
"height": 142.0
}
},
"m_Slots": [
{
"m_Id": "2044fb07811645bebb58bde1548aaf87"
},
{
"m_Id": "6c586efa135141b4885a773f93d0432b"
},
{
"m_Id": "c50a447c7b244549810167e1c38b8380"
},
{
"m_Id": "d1c14eeb77da4463bd80be133287f4c7"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}