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

741 lines
16 KiB
Plaintext
Raw Normal View History

2024-10-27 10:53:47 +03:00
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "4949bcd101fc48669e63bc41f05b45d4",
"m_Properties": [
{
"m_Id": "b1f63e9291aa49dba2fe20bc10f93dde"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "66c462c7662240e1b3c051e922d01e9d"
}
],
"m_Nodes": [
{
"m_Id": "1070e48bf5244d18887124d8cd117c5d"
},
{
"m_Id": "6ecc8c8b1eec4623b2b90e6abc26e68b"
},
{
"m_Id": "dea72ae459254b34979723a4be527abf"
},
{
"m_Id": "499b57955556402b81784ee7117749dc"
},
{
"m_Id": "8cbbf333f3c141e6945771e5573ac691"
},
{
"m_Id": "b2f6af01de3e40e08de3e6ee7824fef6"
}
],
"m_GroupDatas": [
{
"m_Id": "d73106ce2e54486c93d461c5b16ecb34"
}
],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "499b57955556402b81784ee7117749dc"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1070e48bf5244d18887124d8cd117c5d"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "6ecc8c8b1eec4623b2b90e6abc26e68b"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "8cbbf333f3c141e6945771e5573ac691"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "8cbbf333f3c141e6945771e5573ac691"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "499b57955556402b81784ee7117749dc"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b2f6af01de3e40e08de3e6ee7824fef6"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "8cbbf333f3c141e6945771e5573ac691"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "dea72ae459254b34979723a4be527abf"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "499b57955556402b81784ee7117749dc"
},
"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": "Math/Vector",
"m_GraphPrecision": 0,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "1070e48bf5244d18887124d8cd117c5d"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "1070e48bf5244d18887124d8cd117c5d",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 76.6666259765625,
"y": 204.0,
"width": 121.33332824707031,
"height": 76.66667175292969
}
},
"m_Slots": [
{
"m_Id": "bff1131d1a2b4f658bef2b5f110fc020"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "10aa755722894d8993794087971ff284",
"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,
"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": "1d36524f15314689befd8a6257c7de6f",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "2336822b02f9408280cee3f0b5bc9a2c",
"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.SubtractNode",
"m_ObjectId": "499b57955556402b81784ee7117749dc",
"m_Group": {
"m_Id": "d73106ce2e54486c93d461c5b16ecb34"
},
"m_Name": "Subtract",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -68.0,
"y": 204.6666259765625,
"width": 130.0,
"height": 118.00001525878906
}
},
"m_Slots": [
{
"m_Id": "2336822b02f9408280cee3f0b5bc9a2c"
},
{
"m_Id": "80c7891ee6d141bb9296aba9e9031b83"
},
{
"m_Id": "932de36406a044e2a19cde4f833afb0c"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "5778f766c337447bb7b7aa2c2222ddf2",
"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.DynamicValueMaterialSlot",
"m_ObjectId": "6293c85a5ba14178a8ff17c5afc70b33",
"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.CategoryData",
"m_ObjectId": "66c462c7662240e1b3c051e922d01e9d",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "b1f63e9291aa49dba2fe20bc10f93dde"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1Node",
"m_ObjectId": "6ecc8c8b1eec4623b2b90e6abc26e68b",
"m_Group": {
"m_Id": "d73106ce2e54486c93d461c5b16ecb34"
},
"m_Name": "Float",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -402.0,
"y": 214.0,
"width": 126.66665649414063,
"height": 76.66667175292969
}
},
"m_Slots": [
{
"m_Id": "c97a0169276a4870b28f82020f200c92"
},
{
"m_Id": "aed3bc5c9833482fb50d9853c93b4a66"
}
],
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "80c7891ee6d141bb9296aba9e9031b83",
"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.MultiplyNode",
"m_ObjectId": "8cbbf333f3c141e6945771e5573ac691",
"m_Group": {
"m_Id": "d73106ce2e54486c93d461c5b16ecb34"
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -238.6666259765625,
"y": 152.0,
"width": 130.0,
"height": 117.99998474121094
}
},
"m_Slots": [
{
"m_Id": "5778f766c337447bb7b7aa2c2222ddf2"
},
{
"m_Id": "e08a429ab052447f8899c3e7e13485b9"
},
{
"m_Id": "6293c85a5ba14178a8ff17c5afc70b33"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "932de36406a044e2a19cde4f833afb0c",
"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": "aed3bc5c9833482fb50d9853c93b4a66",
"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": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector4ShaderProperty",
"m_ObjectId": "b1f63e9291aa49dba2fe20bc10f93dde",
"m_Guid": {
"m_GuidSerialized": "d5716bd5-790d-4cc7-8d5b-5be4e7260f44"
},
"m_Name": "In",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector4_b1f63e9291aa49dba2fe20bc10f93dde",
"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.PropertyNode",
"m_ObjectId": "b2f6af01de3e40e08de3e6ee7824fef6",
"m_Group": {
"m_Id": "d73106ce2e54486c93d461c5b16ecb34"
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -365.3333740234375,
"y": 174.6666259765625,
"width": 87.33334350585938,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "10aa755722894d8993794087971ff284"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "b1f63e9291aa49dba2fe20bc10f93dde"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "bff1131d1a2b4f658bef2b5f110fc020",
"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,
"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": "c97a0169276a4870b28f82020f200c92",
"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.GroupData",
"m_ObjectId": "d73106ce2e54486c93d461c5b16ecb34",
"m_Title": "Expands 0-1 Range to -1 to 1 Range",
"m_Position": {
"x": -592.6666259765625,
"y": -27.3333740234375
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1Node",
"m_ObjectId": "dea72ae459254b34979723a4be527abf",
"m_Group": {
"m_Id": "d73106ce2e54486c93d461c5b16ecb34"
},
"m_Name": "Float",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -236.6666259765625,
"y": 282.0,
"width": 125.99999237060547,
"height": 76.66668701171875
}
},
"m_Slots": [
{
"m_Id": "eacb929fa4e34e3090953912427ffb36"
},
{
"m_Id": "1d36524f15314689befd8a6257c7de6f"
}
],
"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.DynamicValueMaterialSlot",
"m_ObjectId": "e08a429ab052447f8899c3e7e13485b9",
"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": "eacb929fa4e34e3090953912427ffb36",
"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": []
}