Tetra/Minesweeper/Assets/Art/Shaders/Screen Scaling UV subgraph.shadersubgraph
2025-05-01 01:48:08 -07:00

1339 lines
30 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "787c7a8425c14144bcc1d112aad5e2cf",
"m_Properties": [],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "676b8b3c84814054b6880f0d1f61321e"
}
],
"m_Nodes": [
{
"m_Id": "7c76115cfcf645349befde0665d55244"
},
{
"m_Id": "527a8ac691c04c8ea62f3c844b5ac2d9"
},
{
"m_Id": "b51b8df7a5894045837b050a4760c619"
},
{
"m_Id": "aa27e4773cfe4c1e99400ff7a7e74d0a"
},
{
"m_Id": "54015ed00a6a4f4c8d66d6eec69eaa2c"
},
{
"m_Id": "5dfa5269845d4a7b9eafe687e81c60e0"
},
{
"m_Id": "bd55bcf113c948cf9b6947f2acc855e8"
},
{
"m_Id": "4a6e91e1f57148d38dccf4a4a94d644f"
},
{
"m_Id": "0e077b8bef0a4994abbcb1739c9a694c"
},
{
"m_Id": "2f401d1e4dce41498840d3278fe75634"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [
{
"m_Id": "38dc2e91ffa2408d8d052fc612859653"
}
],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "0e077b8bef0a4994abbcb1739c9a694c"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2f401d1e4dce41498840d3278fe75634"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "2f401d1e4dce41498840d3278fe75634"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7c76115cfcf645349befde0665d55244"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "4a6e91e1f57148d38dccf4a4a94d644f"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0e077b8bef0a4994abbcb1739c9a694c"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "527a8ac691c04c8ea62f3c844b5ac2d9"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b51b8df7a5894045837b050a4760c619"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "54015ed00a6a4f4c8d66d6eec69eaa2c"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "5dfa5269845d4a7b9eafe687e81c60e0"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "54015ed00a6a4f4c8d66d6eec69eaa2c"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "bd55bcf113c948cf9b6947f2acc855e8"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "5dfa5269845d4a7b9eafe687e81c60e0"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0e077b8bef0a4994abbcb1739c9a694c"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "aa27e4773cfe4c1e99400ff7a7e74d0a"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "54015ed00a6a4f4c8d66d6eec69eaa2c"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "aa27e4773cfe4c1e99400ff7a7e74d0a"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "54015ed00a6a4f4c8d66d6eec69eaa2c"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b51b8df7a5894045837b050a4760c619"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "5dfa5269845d4a7b9eafe687e81c60e0"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b51b8df7a5894045837b050a4760c619"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2f401d1e4dce41498840d3278fe75634"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "bd55bcf113c948cf9b6947f2acc855e8"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "4a6e91e1f57148d38dccf4a4a94d644f"
},
"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": "7c76115cfcf645349befde0665d55244"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "075d91b09e5d4a52810fc289c4dedc29",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"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.SubtractNode",
"m_ObjectId": "0e077b8bef0a4994abbcb1739c9a694c",
"m_Group": {
"m_Id": ""
},
"m_Name": "Subtract",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 253.0001220703125,
"y": -271.50006103515627,
"width": 126.0,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "cce83d3a8b5d4c9cb8cc9f61ff778aaa"
},
{
"m_Id": "31c357ef04bf4c0d962e25e8dce14002"
},
{
"m_Id": "58fcf4343ff04dda9c0b977864279f7f"
}
],
"synonyms": [
"subtraction",
"remove",
"minus",
"take away"
],
"m_Precision": 1,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "21a3a8efa8a84313955b652b5c7484c4",
"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.Vector2Node",
"m_ObjectId": "2f401d1e4dce41498840d3278fe75634",
"m_Group": {
"m_Id": ""
},
"m_Name": "Vector 2",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 434.99993896484377,
"y": 61.50006103515625,
"width": 128.00006103515626,
"height": 100.9998779296875
}
},
"m_Slots": [
{
"m_Id": "5369d7fff09448f1a223f92c9e537b7a"
},
{
"m_Id": "96b1e75f539d4c2ea1787426a050537b"
},
{
"m_Id": "546d6941f570413f9f849cf95c306f6c"
}
],
"synonyms": [
"2",
"v2",
"vec2",
"float2"
],
"m_Precision": 1,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Value": {
"x": 0.0,
"y": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "31c357ef04bf4c0d962e25e8dce14002",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"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.Vector1MaterialSlot",
"m_ObjectId": "3649f65386014c49b5d7ebccac6b5186",
"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.StickyNoteData",
"m_ObjectId": "38dc2e91ffa2408d8d052fc612859653",
"m_Title": "Screen Scaling",
"m_Content": "https://discussions.unity.com/t/how-do-i-keep-the-proportions-of-a-texture2d-in-a-full-screen-shader-aspect-ratio/936804/2\n\nWe first the get the X value from the Screen Position node via a Split node (R = X), and we multiply this value with the aspect ratio (Screen width/height = x/y, the nodes circled in red).\r\n\r\nFrom the result of the previous operation, we subtract an offset (circled in blue), which we use because the original result (without the offset) is not centered.\r\n\r\nThe result of the operation minus the offset is then fed into the X port of a Vector 2 node, and the Y port of the same node is fed with the unmodified Y value from the Screen Position node.\r\n\r\nThe out port of the Vector 2 is then connected to the UVs of the Sample Texture node. And voilà!\r\n\r\n",
"m_TextSize": 0,
"m_Theme": 0,
"m_Position": {
"serializedVersion": "2",
"x": -384.0,
"y": 274.0,
"width": 413.0,
"height": 289.0
},
"m_Group": {
"m_Id": ""
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "3dbb8b08eb744952a675081b65093674",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "3f53c4e3221f4638bf537c606fc6232a",
"m_Id": 2,
"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": "4585139d6e3a47a0a00a6d56a8e09428",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 2.0,
"y": 2.0,
"z": 2.0,
"w": 2.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": "46729c1a0c2143f18c46449efbc12e69",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"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.DivideNode",
"m_ObjectId": "4a6e91e1f57148d38dccf4a4a94d644f",
"m_Group": {
"m_Id": ""
},
"m_Name": "Divide",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -36.99993896484375,
"y": 61.50006103515625,
"width": 208.0,
"height": 302.0
}
},
"m_Slots": [
{
"m_Id": "075d91b09e5d4a52810fc289c4dedc29"
},
{
"m_Id": "4585139d6e3a47a0a00a6d56a8e09428"
},
{
"m_Id": "3f53c4e3221f4638bf537c606fc6232a"
}
],
"synonyms": [
"division",
"divided by"
],
"m_Precision": 1,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ScreenPositionNode",
"m_ObjectId": "527a8ac691c04c8ea62f3c844b5ac2d9",
"m_Group": {
"m_Id": ""
},
"m_Name": "Screen Position",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -543.0,
"y": -269.5,
"width": 145.00003051757813,
"height": 128.9998779296875
}
},
"m_Slots": [
{
"m_Id": "f128b46233374725a67792fe49acfe5e"
}
],
"synonyms": [],
"m_Precision": 1,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_ScreenSpaceType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "5369d7fff09448f1a223f92c9e537b7a",
"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.DivideNode",
"m_ObjectId": "54015ed00a6a4f4c8d66d6eec69eaa2c",
"m_Group": {
"m_Id": ""
},
"m_Name": "Divide",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -455.0,
"y": -1.50018310546875,
"width": 125.99996948242188,
"height": 118.0001220703125
}
},
"m_Slots": [
{
"m_Id": "ce4aeb92855d48de8592eecb2f609e08"
},
{
"m_Id": "cef76ef9196d4ebc947d3b8d0adeea49"
},
{
"m_Id": "7ccfdee4f4244d1198e32785bd24ee20"
}
],
"synonyms": [
"division",
"divided by"
],
"m_Precision": 1,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "546d6941f570413f9f849cf95c306f6c",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "58fcf4343ff04dda9c0b977864279f7f",
"m_Id": 2,
"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.Vector1MaterialSlot",
"m_ObjectId": "5b37b9e8bb074571b1731f06a6c372af",
"m_Id": 1,
"m_DisplayName": "Height",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Height",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
"m_ObjectId": "5dfa5269845d4a7b9eafe687e81c60e0",
"m_Group": {
"m_Id": ""
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -131.0000457763672,
"y": -269.5,
"width": 126.00011444091797,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "788a47f381be42d780e5f9a6ab5a4030"
},
{
"m_Id": "f6be99212f66427686262d9759cb5a01"
},
{
"m_Id": "3dbb8b08eb744952a675081b65093674"
}
],
"synonyms": [
"multiplication",
"times",
"x"
],
"m_Precision": 1,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "5e4a547df6ec4d71aa1c8b4dd1630006",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"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.CategoryData",
"m_ObjectId": "676b8b3c84814054b6880f0d1f61321e",
"m_Name": "",
"m_ChildObjectList": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "75083b8c0663461a9210cc4c985d182f",
"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": "784d0cca2f324ad4affe40a7b5cc5281",
"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.DynamicValueMaterialSlot",
"m_ObjectId": "788a47f381be42d780e5f9a6ab5a4030",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "7c76115cfcf645349befde0665d55244",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 699.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "e69dbc5850024d6ab3b9e898318e8dd8"
}
],
"synonyms": [],
"m_Precision": 1,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "7ccfdee4f4244d1198e32785bd24ee20",
"m_Id": 2,
"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.Vector1MaterialSlot",
"m_ObjectId": "96b1e75f539d4c2ea1787426a050537b",
"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": 0,
"m_Type": "UnityEditor.ShaderGraph.ScreenNode",
"m_ObjectId": "aa27e4773cfe4c1e99400ff7a7e74d0a",
"m_Group": {
"m_Id": ""
},
"m_Name": "Screen",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -543.0,
"y": -1.50018310546875,
"width": 88.00003051757813,
"height": 101.0001220703125
}
},
"m_Slots": [
{
"m_Id": "fabe4fd44e244d3d99761104b8ee3fb8"
},
{
"m_Id": "5b37b9e8bb074571b1731f06a6c372af"
}
],
"synonyms": [],
"m_Precision": 1,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SplitNode",
"m_ObjectId": "b51b8df7a5894045837b050a4760c619",
"m_Group": {
"m_Id": ""
},
"m_Name": "Split",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -352.0,
"y": -269.5,
"width": 120.00000762939453,
"height": 148.99993896484376
}
},
"m_Slots": [
{
"m_Id": "75083b8c0663461a9210cc4c985d182f"
},
{
"m_Id": "21a3a8efa8a84313955b652b5c7484c4"
},
{
"m_Id": "3649f65386014c49b5d7ebccac6b5186"
},
{
"m_Id": "784d0cca2f324ad4affe40a7b5cc5281"
},
{
"m_Id": "f0401daae4374ecdacb0d33731c1de62"
}
],
"synonyms": [
"separate"
],
"m_Precision": 1,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubtractNode",
"m_ObjectId": "bd55bcf113c948cf9b6947f2acc855e8",
"m_Group": {
"m_Id": ""
},
"m_Name": "Subtract",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -250.0000457763672,
"y": 61.50006103515625,
"width": 125.9999771118164,
"height": 117.9998779296875
}
},
"m_Slots": [
{
"m_Id": "46729c1a0c2143f18c46449efbc12e69"
},
{
"m_Id": "5e4a547df6ec4d71aa1c8b4dd1630006"
},
{
"m_Id": "e614932becbe40edbb53e25b35d3ad0f"
}
],
"synonyms": [
"subtraction",
"remove",
"minus",
"take away"
],
"m_Precision": 1,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "cce83d3a8b5d4c9cb8cc9f61ff778aaa",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "ce4aeb92855d48de8592eecb2f609e08",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"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": "cef76ef9196d4ebc947d3b8d0adeea49",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 2.0,
"y": 2.0,
"z": 2.0,
"w": 2.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": "e614932becbe40edbb53e25b35d3ad0f",
"m_Id": 2,
"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.Vector2MaterialSlot",
"m_ObjectId": "e69dbc5850024d6ab3b9e898318e8dd8",
"m_Id": 1,
"m_DisplayName": "Out_Vector2",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "OutVector2",
"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": "f0401daae4374ecdacb0d33731c1de62",
"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.Vector4MaterialSlot",
"m_ObjectId": "f128b46233374725a67792fe49acfe5e",
"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,
"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.DynamicValueMaterialSlot",
"m_ObjectId": "f6be99212f66427686262d9759cb5a01",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"e00": 2.0,
"e01": 2.0,
"e02": 2.0,
"e03": 2.0,
"e10": 2.0,
"e11": 2.0,
"e12": 2.0,
"e13": 2.0,
"e20": 2.0,
"e21": 2.0,
"e22": 2.0,
"e23": 2.0,
"e30": 2.0,
"e31": 2.0,
"e32": 2.0,
"e33": 2.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "fabe4fd44e244d3d99761104b8ee3fb8",
"m_Id": 0,
"m_DisplayName": "Width",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Width",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}