UnityGame/Library/PackageCache/com.unity.shadergraph/Samples~/ProceduralPatterns/Grid.ShaderSubGraph
2024-10-27 10:53:47 +03:00

869 lines
20 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "69e4812047a14894aa9de6abf3c4e2da",
"m_Properties": [
{
"m_Id": "835a30ec3e482f81beb07396eedeb422"
},
{
"m_Id": "08da8df820a1ed87bb933f5b3c88dc6d"
},
{
"m_Id": "941abacfb1997c82b1f691920dd18234"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "3694af3c5e7b4535a0536018f699fea9"
}
],
"m_Nodes": [
{
"m_Id": "a0e5e6b4c04ca884acf5b4ef03797946"
},
{
"m_Id": "372660d10ff02e85a219c963d16063f1"
},
{
"m_Id": "7ef98bf5d80d3e80920e877b157d97a2"
},
{
"m_Id": "213c9e6e95ba64828704c5ad7e10ffe4"
},
{
"m_Id": "00dd85cd0e38fc8ba6e24864e56ff16d"
},
{
"m_Id": "60dc71b9aa2e6084b4873c8f50fb6a1b"
},
{
"m_Id": "cf215d09b9c0dd8cbc94e9ff5fc8cd32"
}
],
"m_GroupDatas": [
{
"m_Id": "103c38ac4f4e4596a6164fe30e3937f4"
}
],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "00dd85cd0e38fc8ba6e24864e56ff16d"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "60dc71b9aa2e6084b4873c8f50fb6a1b"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "213c9e6e95ba64828704c5ad7e10ffe4"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "60dc71b9aa2e6084b4873c8f50fb6a1b"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "213c9e6e95ba64828704c5ad7e10ffe4"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "60dc71b9aa2e6084b4873c8f50fb6a1b"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "372660d10ff02e85a219c963d16063f1"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7ef98bf5d80d3e80920e877b157d97a2"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "60dc71b9aa2e6084b4873c8f50fb6a1b"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "a0e5e6b4c04ca884acf5b4ef03797946"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7ef98bf5d80d3e80920e877b157d97a2"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "00dd85cd0e38fc8ba6e24864e56ff16d"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "cf215d09b9c0dd8cbc94e9ff5fc8cd32"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7ef98bf5d80d3e80920e877b157d97a2"
},
"m_SlotId": 2
}
}
],
"m_VertexContext": {
"m_Position": {
"x": -39.0,
"y": 907.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": -39.0,
"y": 1107.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Patterns/Simple",
"m_GraphPrecision": 0,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "a0e5e6b4c04ca884acf5b4ef03797946"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.FractionNode",
"m_ObjectId": "00dd85cd0e38fc8ba6e24864e56ff16d",
"m_Group": {
"m_Id": "103c38ac4f4e4596a6164fe30e3937f4"
},
"m_Name": "Fraction",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -621.0,
"y": 906.0,
"width": 208.0,
"height": 278.0
}
},
"m_Slots": [
{
"m_Id": "218bb09c9b7cfb81b4d28b0a8a00ae4d"
},
{
"m_Id": "5c1f847928493788a423c4fc504a00fd"
}
],
"synonyms": [
"remainder"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "08da8df820a1ed87bb933f5b3c88dc6d",
"m_Guid": {
"m_GuidSerialized": "1c1efcdd-bd8e-4feb-860c-bb60de80fb42"
},
"m_Name": "Tiling",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "",
"m_OverrideReferenceName": "_tiling",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 8.0,
"y": 8.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.GroupData",
"m_ObjectId": "103c38ac4f4e4596a6164fe30e3937f4",
"m_Title": "Fraction creates repeating UV tiles",
"m_Position": {
"x": -646.0,
"y": 844.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "15e8f91b8e072f8883e115bf2b130f4f",
"m_Id": 0,
"m_DisplayName": "Size",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"X"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "213c9e6e95ba64828704c5ad7e10ffe4",
"m_Group": {
"m_Id": "103c38ac4f4e4596a6164fe30e3937f4"
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -408.0,
"y": 984.0,
"width": 94.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "15e8f91b8e072f8883e115bf2b130f4f"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "835a30ec3e482f81beb07396eedeb422"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "218bb09c9b7cfb81b4d28b0a8a00ae4d",
"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.CategoryData",
"m_ObjectId": "3694af3c5e7b4535a0536018f699fea9",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "835a30ec3e482f81beb07396eedeb422"
},
{
"m_Id": "08da8df820a1ed87bb933f5b3c88dc6d"
},
{
"m_Id": "941abacfb1997c82b1f691920dd18234"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "372660d10ff02e85a219c963d16063f1",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1039.0,
"y": 975.0,
"width": 101.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "bfee90f89a2f0f89b724d993327aa4d1"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "08da8df820a1ed87bb933f5b3c88dc6d"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "43f61ac250965889aba5f9768cb53e28",
"m_Id": 3,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"X"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "5c1f847928493788a423c4fc504a00fd",
"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,
"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": "5e77e7c924ac8a828143f08d6ddee097",
"m_Id": 3,
"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": [
"X",
"Y"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot",
"m_ObjectId": "5f9f726e2b703888a9b78f1fa10260af",
"m_Id": 0,
"m_DisplayName": "UV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": [
"X",
"Y"
],
"m_Channel": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.RectangleNode",
"m_ObjectId": "60dc71b9aa2e6084b4873c8f50fb6a1b",
"m_Group": {
"m_Id": "103c38ac4f4e4596a6164fe30e3937f4"
},
"m_Name": "Rectangle",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -302.0,
"y": 908.0,
"width": 208.0,
"height": 326.0
}
},
"m_Slots": [
{
"m_Id": "5f9f726e2b703888a9b78f1fa10260af"
},
{
"m_Id": "dda41c3605ab968da7cce286546c26ec"
},
{
"m_Id": "9fc04aca58509e8aa8dd028a3637c122"
},
{
"m_Id": "43f61ac250965889aba5f9768cb53e28"
}
],
"synonyms": [
"square"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_ClampType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot",
"m_ObjectId": "6222c4402bf1748a8632fe93e8ed5d50",
"m_Id": 0,
"m_DisplayName": "UV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": [
"X",
"Y"
],
"m_Channel": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.TilingAndOffsetNode",
"m_ObjectId": "7ef98bf5d80d3e80920e877b157d97a2",
"m_Group": {
"m_Id": ""
},
"m_Name": "Tiling And Offset",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -879.0,
"y": 910.0,
"width": 208.0,
"height": 326.0
}
},
"m_Slots": [
{
"m_Id": "6222c4402bf1748a8632fe93e8ed5d50"
},
{
"m_Id": "80bb75de33509084ae695b1897d5d234"
},
{
"m_Id": "dca3f9e556a05f82ab8808353d9088e9"
},
{
"m_Id": "5e77e7c924ac8a828143f08d6ddee097"
}
],
"synonyms": [
"pan",
"scale"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "80bb75de33509084ae695b1897d5d234",
"m_Id": 1,
"m_DisplayName": "Tiling",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Tiling",
"m_StageCapability": 3,
"m_Value": {
"x": 3.0,
"y": 3.0
},
"m_DefaultValue": {
"x": 1.0,
"y": 1.0
},
"m_Labels": [
"X",
"Y"
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "835a30ec3e482f81beb07396eedeb422",
"m_Guid": {
"m_GuidSerialized": "a90cd8c3-7487-4455-b021-1197b54fa244"
},
"m_Name": "Size",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "",
"m_OverrideReferenceName": "_width",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 0.8999999761581421,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "941abacfb1997c82b1f691920dd18234",
"m_Guid": {
"m_GuidSerialized": "23d2d395-226b-4bf5-a65c-ccaa2d1c7cc9"
},
"m_Name": "Offset",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "",
"m_OverrideReferenceName": "_offset",
"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.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "9fc04aca58509e8aa8dd028a3637c122",
"m_Id": 2,
"m_DisplayName": "Height",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Height",
"m_StageCapability": 3,
"m_Value": 0.699999988079071,
"m_DefaultValue": 0.5,
"m_Labels": [
"X"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "a0e5e6b4c04ca884acf5b4ef03797946",
"m_Group": {
"m_Id": ""
},
"m_Name": "SubGraphOutputs",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -39.0,
"y": 907.0,
"width": 157.0,
"height": 77.0
}
},
"m_Slots": [
{
"m_Id": "be39dcd50688768f801e00bfe26872b8"
}
],
"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": "be39dcd50688768f801e00bfe26872b8",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"X"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "bfee90f89a2f0f89b724d993327aa4d1",
"m_Id": 0,
"m_DisplayName": "Tiling",
"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": [
"X",
"Y"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "cf215d09b9c0dd8cbc94e9ff5fc8cd32",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1040.0,
"y": 1010.0,
"width": 103.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "d21c3481487c008681378116612b5d81"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "941abacfb1997c82b1f691920dd18234"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "d21c3481487c008681378116612b5d81",
"m_Id": 0,
"m_DisplayName": "Offset",
"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": [
"X",
"Y"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "dca3f9e556a05f82ab8808353d9088e9",
"m_Id": 2,
"m_DisplayName": "Offset",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Offset",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": [
"X",
"Y"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "dda41c3605ab968da7cce286546c26ec",
"m_Id": 1,
"m_DisplayName": "Width",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Width",
"m_StageCapability": 3,
"m_Value": 0.699999988079071,
"m_DefaultValue": 0.5,
"m_Labels": [
"X"
]
}