UnityGame/Library/PackageCache/com.unity.shadergraph/Samples~/Common/Subgraphs/ExpandVec2.shadersubgraph
2024-10-27 10:53:47 +03:00

733 lines
16 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "390e769d49ad431aaa6ae007a9746c53",
"m_Properties": [
{
"m_Id": "c9e9b7393b224ee5b8c9e5b8158482c7"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "6ef24d466d254ea1b19d1d0524f7a5b6"
}
],
"m_Nodes": [
{
"m_Id": "28431b9b3c53424f803fc343dd8c0823"
},
{
"m_Id": "58cc23e391a443e99d5022354dc09cff"
},
{
"m_Id": "58ad7ba6261345d387e92e9fabd91da1"
},
{
"m_Id": "314117b567e74b6e93eed1b903d2b177"
},
{
"m_Id": "fe19c1aaaba94525897329c5696431cb"
},
{
"m_Id": "69e7ae9a621441cd92cc4c0458666140"
}
],
"m_GroupDatas": [
{
"m_Id": "640fbb6f36c44100b24c1fb7fc56a6a0"
}
],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "314117b567e74b6e93eed1b903d2b177"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "28431b9b3c53424f803fc343dd8c0823"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "58ad7ba6261345d387e92e9fabd91da1"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "314117b567e74b6e93eed1b903d2b177"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "58cc23e391a443e99d5022354dc09cff"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "fe19c1aaaba94525897329c5696431cb"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "69e7ae9a621441cd92cc4c0458666140"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "fe19c1aaaba94525897329c5696431cb"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fe19c1aaaba94525897329c5696431cb"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "314117b567e74b6e93eed1b903d2b177"
},
"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": "Math/Vector",
"m_GraphPrecision": 0,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "28431b9b3c53424f803fc343dd8c0823"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "28431b9b3c53424f803fc343dd8c0823",
"m_Group": {
"m_Id": "640fbb6f36c44100b24c1fb7fc56a6a0"
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 44.66668701171875,
"y": -173.33334350585938,
"width": 86.0,
"height": 77.33334350585938
}
},
"m_Slots": [
{
"m_Id": "b226760acdee4917b8cc627158b0b57a"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubtractNode",
"m_ObjectId": "314117b567e74b6e93eed1b903d2b177",
"m_Group": {
"m_Id": "640fbb6f36c44100b24c1fb7fc56a6a0"
},
"m_Name": "Subtract",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -97.33331298828125,
"y": -173.33334350585938,
"width": 130.0,
"height": 118.00000762939453
}
},
"m_Slots": [
{
"m_Id": "915d1b3299b44bb990c94a7526b5d0a1"
},
{
"m_Id": "4d477f7dadee4db0913ea0d3d489569a"
},
{
"m_Id": "a6a3f7c187fe415d8cd695d431399dee"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "3674f6c56730409fbd263b0a95d2af7f",
"m_Id": 1,
"m_DisplayName": "X",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "X",
"m_StageCapability": 3,
"m_Value": 2.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "36fc8e0174414d0a9b2f3096fb501810",
"m_Id": 0,
"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": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "45d5892534df44fd89d4e9849dc04354",
"m_Id": 0,
"m_DisplayName": "In",
"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": "4d477f7dadee4db0913ea0d3d489569a",
"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.Vector1Node",
"m_ObjectId": "58ad7ba6261345d387e92e9fabd91da1",
"m_Group": {
"m_Id": "640fbb6f36c44100b24c1fb7fc56a6a0"
},
"m_Name": "Float",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -266.0,
"y": -95.33334350585938,
"width": 125.99998474121094,
"height": 76.66667175292969
}
},
"m_Slots": [
{
"m_Id": "606200aea30f451f85b60759f5e3b049"
},
{
"m_Id": "36fc8e0174414d0a9b2f3096fb501810"
}
],
"synonyms": [
"Vector 1"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Value": 0.0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1Node",
"m_ObjectId": "58cc23e391a443e99d5022354dc09cff",
"m_Group": {
"m_Id": "640fbb6f36c44100b24c1fb7fc56a6a0"
},
"m_Name": "Float",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -430.66668701171877,
"y": -164.0,
"width": 126.0,
"height": 77.33333587646485
}
},
"m_Slots": [
{
"m_Id": "3674f6c56730409fbd263b0a95d2af7f"
},
{
"m_Id": "d62e45b3ef3e44e2aba7b069df278525"
}
],
"synonyms": [
"Vector 1"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Value": 0.0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "606200aea30f451f85b60759f5e3b049",
"m_Id": 1,
"m_DisplayName": "X",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "X",
"m_StageCapability": 3,
"m_Value": 1.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.GroupData",
"m_ObjectId": "640fbb6f36c44100b24c1fb7fc56a6a0",
"m_Title": "Expands 0-1 to -1 to 1 Range",
"m_Position": {
"x": 10.0,
"y": 10.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "69e7ae9a621441cd92cc4c0458666140",
"m_Group": {
"m_Id": "640fbb6f36c44100b24c1fb7fc56a6a0"
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -394.0,
"y": -211.33334350585938,
"width": 87.33331298828125,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "45d5892534df44fd89d4e9849dc04354"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "c9e9b7393b224ee5b8c9e5b8158482c7"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "6ef24d466d254ea1b19d1d0524f7a5b6",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "c9e9b7393b224ee5b8c9e5b8158482c7"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "747dbeee50434d67912908d9346beff9",
"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": "915d1b3299b44bb990c94a7526b5d0a1",
"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.DynamicValueMaterialSlot",
"m_ObjectId": "98c2f7ee6092478c89142c84b7ff308b",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "a6a3f7c187fe415d8cd695d431399dee",
"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": "b226760acdee4917b8cc627158b0b57a",
"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
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "c9e9b7393b224ee5b8c9e5b8158482c7",
"m_Guid": {
"m_GuidSerialized": "966ecff5-bea0-426c-ada6-6cbecc0a3cf0"
},
"m_Name": "In",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector2_c9e9b7393b224ee5b8c9e5b8158482c7",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"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.Vector1MaterialSlot",
"m_ObjectId": "d62e45b3ef3e44e2aba7b069df278525",
"m_Id": 0,
"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": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "fd8a6ff9df774efba505cad871729196",
"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.MultiplyNode",
"m_ObjectId": "fe19c1aaaba94525897329c5696431cb",
"m_Group": {
"m_Id": "640fbb6f36c44100b24c1fb7fc56a6a0"
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -268.0,
"y": -224.66668701171876,
"width": 129.99998474121095,
"height": 117.33333587646485
}
},
"m_Slots": [
{
"m_Id": "98c2f7ee6092478c89142c84b7ff308b"
},
{
"m_Id": "fd8a6ff9df774efba505cad871729196"
},
{
"m_Id": "747dbeee50434d67912908d9346beff9"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}