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

733 lines
17 KiB
Plaintext
Raw Normal View History

2024-10-27 10:53:47 +03:00
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "ca4092331091498e88cc644e9581df77",
"m_Properties": [
{
"m_Id": "5ffaae8ca8974d7abdaeabeb86732754"
},
{
"m_Id": "d71f625632b24da99de8e559fee0cb4a"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "553e0fc7f7de404a8fdfc8e0050f98ce"
}
],
"m_Nodes": [
{
"m_Id": "c51be4e534774106bda0a3c72aa80acd"
},
{
"m_Id": "34377345200e4dcd8f1d6afc955d6a71"
},
{
"m_Id": "4ec121f5544b4dedb34d2990912bf050"
},
{
"m_Id": "973b5e69eed9404bbaa945ab7b7abe64"
},
{
"m_Id": "313c108b1e3e4d9baf378c4745b458d6"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [
{
"m_Id": "2dfb0463b40d4f618818e96d27964c79"
}
],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "313c108b1e3e4d9baf378c4745b458d6"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "973b5e69eed9404bbaa945ab7b7abe64"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "313c108b1e3e4d9baf378c4745b458d6"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "973b5e69eed9404bbaa945ab7b7abe64"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "313c108b1e3e4d9baf378c4745b458d6"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "973b5e69eed9404bbaa945ab7b7abe64"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "34377345200e4dcd8f1d6afc955d6a71"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "313c108b1e3e4d9baf378c4745b458d6"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "4ec121f5544b4dedb34d2990912bf050"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "973b5e69eed9404bbaa945ab7b7abe64"
},
"m_SlotId": 3
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "973b5e69eed9404bbaa945ab7b7abe64"
},
"m_SlotId": 4
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c51be4e534774106bda0a3c72aa80acd"
},
"m_SlotId": 1
}
}
],
"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": "Channel",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "c51be4e534774106bda0a3c72aa80acd"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "262d301cbe7c4e6685bb2bfa382eb771",
"m_Id": 3,
"m_DisplayName": "B",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "28c1288cb7de4e4786ef4bdbfc109d75",
"m_Id": 0,
"m_DisplayName": "RGB",
"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.StickyNoteData",
"m_ObjectId": "2dfb0463b40d4f618818e96d27964c79",
"m_Title": "",
"m_Content": "Combine the input color RGB and input Alpha to create the RGBA output. ",
"m_TextSize": 0,
"m_Theme": 0,
"m_Position": {
"serializedVersion": "2",
"x": -368.5,
"y": 116.0,
"width": 200.0,
"height": 100.0
},
"m_Group": {
"m_Id": ""
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "30194b0cc8fe4b338cd6b25bda37cba1",
"m_Id": 1,
"m_DisplayName": "G",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "G",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SplitNode",
"m_ObjectId": "313c108b1e3e4d9baf378c4745b458d6",
"m_Group": {
"m_Id": ""
},
"m_Name": "Split",
"m_DrawState": {
"m_Expanded": false,
"m_Position": {
"serializedVersion": "2",
"x": -418.66668701171877,
"y": -60.666656494140628,
"width": 118.66668701171875,
"height": 124.6666259765625
}
},
"m_Slots": [
{
"m_Id": "873f777989a644cfb267b0daf1d7f3cc"
},
{
"m_Id": "46928564304d4c32afdef5c7437bc731"
},
{
"m_Id": "8dfc086a4a8142dc80589f4e45137f90"
},
{
"m_Id": "262d301cbe7c4e6685bb2bfa382eb771"
},
{
"m_Id": "3d71a1fccb2944a2aa3dc865685afa57"
}
],
"synonyms": [
"separate"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "34377345200e4dcd8f1d6afc955d6a71",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -518.6666259765625,
"y": -21.333343505859376,
"width": 100.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "28c1288cb7de4e4786ef4bdbfc109d75"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "5ffaae8ca8974d7abdaeabeb86732754"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "358154127ce24245a35cca68b0873e3f",
"m_Id": 5,
"m_DisplayName": "RGB",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "RGB",
"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": "3d71a1fccb2944a2aa3dc865685afa57",
"m_Id": 4,
"m_DisplayName": "A",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "46928564304d4c32afdef5c7437bc731",
"m_Id": 1,
"m_DisplayName": "R",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "R",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "4ec121f5544b4dedb34d2990912bf050",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -404.66668701171877,
"y": 64.66665649414063,
"width": 104.66668701171875,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "d5c9a2d75f81494a8611121fd58cc8d3"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "d71f625632b24da99de8e559fee0cb4a"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "553e0fc7f7de404a8fdfc8e0050f98ce",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "5ffaae8ca8974d7abdaeabeb86732754"
},
{
"m_Id": "d71f625632b24da99de8e559fee0cb4a"
}
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "5ffaae8ca8974d7abdaeabeb86732754",
"m_Guid": {
"m_GuidSerialized": "cd84c0a1-ed33-4f6e-8eab-f6a773fed629"
},
"m_Name": "RGB",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "RGB",
"m_DefaultReferenceName": "_RGB",
"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.5,
"y": 0.5,
"z": 0.5,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "620a3f5355a744b08824c6b09cc69d30",
"m_Id": 3,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "873f777989a644cfb267b0daf1d7f3cc",
"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": "8dfc086a4a8142dc80589f4e45137f90",
"m_Id": 2,
"m_DisplayName": "G",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "G",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CombineNode",
"m_ObjectId": "973b5e69eed9404bbaa945ab7b7abe64",
"m_Group": {
"m_Id": ""
},
"m_Name": "Combine",
"m_DrawState": {
"m_Expanded": false,
"m_Position": {
"serializedVersion": "2",
"x": -288.0,
"y": -54.0,
"width": 139.33331298828126,
"height": 165.99996948242188
}
},
"m_Slots": [
{
"m_Id": "f7cf5ff65817409a8294461f6030e3bc"
},
{
"m_Id": "30194b0cc8fe4b338cd6b25bda37cba1"
},
{
"m_Id": "c44e102e18c741ddb55298b6c0371493"
},
{
"m_Id": "620a3f5355a744b08824c6b09cc69d30"
},
{
"m_Id": "b5a118cfa077460cb4aea53c94e9f271"
},
{
"m_Id": "358154127ce24245a35cca68b0873e3f"
},
{
"m_Id": "dd692a6de6d347fcb46bfcc395744ecc"
}
],
"synonyms": [
"append"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "b5a118cfa077460cb4aea53c94e9f271",
"m_Id": 4,
"m_DisplayName": "RGBA",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "RGBA",
"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": "b7c4cb1aab7c4b4bb932279de8ffcdc2",
"m_Id": 1,
"m_DisplayName": "RGBA",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "RGBA",
"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.Vector1MaterialSlot",
"m_ObjectId": "c44e102e18c741ddb55298b6c0371493",
"m_Id": 2,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "c51be4e534774106bda0a3c72aa80acd",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -149.33331298828126,
"y": -54.0,
"width": 85.33331298828125,
"height": 76.66665649414063
}
},
"m_Slots": [
{
"m_Id": "b7c4cb1aab7c4b4bb932279de8ffcdc2"
}
],
"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.Vector1MaterialSlot",
"m_ObjectId": "d5c9a2d75f81494a8611121fd58cc8d3",
"m_Id": 0,
"m_DisplayName": "Alpha",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "d71f625632b24da99de8e559fee0cb4a",
"m_Guid": {
"m_GuidSerialized": "5fdb2aad-be5d-43c6-a7eb-f67c0d85d460"
},
"m_Name": "Alpha",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Alpha",
"m_DefaultReferenceName": "_Alpha",
"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": 1.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "dd692a6de6d347fcb46bfcc395744ecc",
"m_Id": 6,
"m_DisplayName": "RG",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "RG",
"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.Vector1MaterialSlot",
"m_ObjectId": "f7cf5ff65817409a8294461f6030e3bc",
"m_Id": 0,
"m_DisplayName": "R",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "R",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}