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

492 lines
11 KiB
Plaintext
Raw Normal View History

2024-10-27 10:53:47 +03:00
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "de1b21a9e9584f56bf37e08132035f3c",
"m_Properties": [
{
"m_Id": "615e14412cdf43eca9b36857d9a8d074"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "73f5457fe80f402096f84db02c0db498"
}
],
"m_Nodes": [
{
"m_Id": "733490df30a342adacd1b7ec1a5f5b7f"
},
{
"m_Id": "5d89e3d762924af3b7e53b3dd9236195"
},
{
"m_Id": "45aaffda5d9c408b92f0fc57acc0f913"
},
{
"m_Id": "112911596b4343ee9fbf5dd7ccb2542a"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [
{
"m_Id": "14826decf29242038afbe80d5bf23026"
}
],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "112911596b4343ee9fbf5dd7ccb2542a"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "733490df30a342adacd1b7ec1a5f5b7f"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "45aaffda5d9c408b92f0fc57acc0f913"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "733490df30a342adacd1b7ec1a5f5b7f"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "5d89e3d762924af3b7e53b3dd9236195"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "112911596b4343ee9fbf5dd7ccb2542a"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "5d89e3d762924af3b7e53b3dd9236195"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "45aaffda5d9c408b92f0fc57acc0f913"
},
"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": "Channel",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "733490df30a342adacd1b7ec1a5f5b7f"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.SwizzleNode",
"m_ObjectId": "112911596b4343ee9fbf5dd7ccb2542a",
"m_Group": {
"m_Id": ""
},
"m_Name": "Swizzle",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -165.33331298828126,
"y": 62.66668701171875,
"width": 130.0,
"height": 122.6666259765625
}
},
"m_Slots": [
{
"m_Id": "9ec7eb5a44994a8f95e40fa71fbc0e0e"
},
{
"m_Id": "f66a3885d25a4ae58d619da4fc9079f0"
}
],
"synonyms": [
"swap",
"reorder",
"component mask"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"_maskInput": "w",
"convertedMask": "w"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "11b152e5809640608dc0cbfd525cd487",
"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.StickyNoteData",
"m_ObjectId": "14826decf29242038afbe80d5bf23026",
"m_Title": "",
"m_Content": "Split an RGBA value into an RGB color and an Alpha value.",
"m_TextSize": 0,
"m_Theme": 0,
"m_Position": {
"serializedVersion": "2",
"x": -166.5,
"y": 189.0,
"width": 131.0,
"height": 100.0
},
"m_Group": {
"m_Id": ""
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "2b9933f12f48465ba8561488e2c7b2a1",
"m_Id": 2,
"m_DisplayName": "Alpha",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Alpha",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.SwizzleNode",
"m_ObjectId": "45aaffda5d9c408b92f0fc57acc0f913",
"m_Group": {
"m_Id": ""
},
"m_Name": "Swizzle",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -165.33331298828126,
"y": -61.333343505859378,
"width": 132.0,
"height": 122.66665649414063
}
},
"m_Slots": [
{
"m_Id": "11b152e5809640608dc0cbfd525cd487"
},
{
"m_Id": "ceb039cbd61248b98752f19296407db1"
}
],
"synonyms": [
"swap",
"reorder",
"component mask"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"_maskInput": "xyz",
"convertedMask": "xyz"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "5d89e3d762924af3b7e53b3dd9236195",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -294.66668701171877,
"y": 44.0,
"width": 107.3333740234375,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "9ce394673e4c4b3f84f52caeb835835b"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "615e14412cdf43eca9b36857d9a8d074"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector4ShaderProperty",
"m_ObjectId": "615e14412cdf43eca9b36857d9a8d074",
"m_Guid": {
"m_GuidSerialized": "49d5b662-f0ea-44e5-a4fb-659ee2671197"
},
"m_Name": "RGBA",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "RGBA",
"m_DefaultReferenceName": "_RGBA",
"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": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "733490df30a342adacd1b7ec1a5f5b7f",
"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": "9dc5085fdc824033b9278f64d67bf745"
},
{
"m_Id": "2b9933f12f48465ba8561488e2c7b2a1"
}
],
"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": "73f5457fe80f402096f84db02c0db498",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "615e14412cdf43eca9b36857d9a8d074"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "9ce394673e4c4b3f84f52caeb835835b",
"m_Id": 0,
"m_DisplayName": "RGBA",
"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.Vector3MaterialSlot",
"m_ObjectId": "9dc5085fdc824033b9278f64d67bf745",
"m_Id": 1,
"m_DisplayName": "RGB",
"m_SlotType": 0,
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "9ec7eb5a44994a8f95e40fa71fbc0e0e",
"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.Vector3MaterialSlot",
"m_ObjectId": "ceb039cbd61248b98752f19296407db1",
"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
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "f66a3885d25a4ae58d619da4fc9079f0",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}