Files
Bombaleila/Library/PackageCache/com.unity.shadergraph@c8830f61858d/Samples~/Terrain/Subgraphs/Components/Hex/Grid Random3.shadersubgraph
2026-03-03 00:39:30 +05:00

897 lines
21 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "6ca61cbcfae4470dad83e3760f7c5050",
"m_Properties": [
{
"m_Id": "3eea43880af6878e8f39c9b818465c6e"
},
{
"m_Id": "e8febd9393f60b8ca723ec06111edb24"
},
{
"m_Id": "83a09f85ae0fdc85a8cee46af63bf184"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "ffe04c9a01f04f7698bbbeb5c6b2f37d"
}
],
"m_Nodes": [
{
"m_Id": "bce226ed39a60489860b786cb56dcd51"
},
{
"m_Id": "04ed7310b6f2bd8bae715cf02a62af33"
},
{
"m_Id": "c9864dfb0cdc4d84bd74c47ea196f203"
},
{
"m_Id": "8e82de0a48c1608490733d1c2faa9264"
},
{
"m_Id": "30bd9a06e150728885e8efc5b35b86dd"
},
{
"m_Id": "59715a0d8289e18f9c6e71cd69dcd94c"
},
{
"m_Id": "f9cf3cf2ba7af588871f6a3519413687"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [
{
"m_Id": "b6d3a32422bc4f9fb9b571a87433ee44"
},
{
"m_Id": "443d1153937146799c497b7f2aab1206"
}
],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "04ed7310b6f2bd8bae715cf02a62af33"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c9864dfb0cdc4d84bd74c47ea196f203"
},
"m_SlotId": 3
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "30bd9a06e150728885e8efc5b35b86dd"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "59715a0d8289e18f9c6e71cd69dcd94c"
},
"m_SlotId": 5
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "59715a0d8289e18f9c6e71cd69dcd94c"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c9864dfb0cdc4d84bd74c47ea196f203"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "8e82de0a48c1608490733d1c2faa9264"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "04ed7310b6f2bd8bae715cf02a62af33"
},
"m_SlotId": 5
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "bce226ed39a60489860b786cb56dcd51"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "f9cf3cf2ba7af588871f6a3519413687"
},
"m_SlotId": 5
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "f9cf3cf2ba7af588871f6a3519413687"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c9864dfb0cdc4d84bd74c47ea196f203"
},
"m_SlotId": 1
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 459.0,
"y": 8.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 459.0,
"y": 208.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Terrain/Components/Hex",
"m_GraphPrecision": 0,
"m_PreviewMode": 1,
"m_OutputNode": {
"m_Id": "c9864dfb0cdc4d84bd74c47ea196f203"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "04ed7310b6f2bd8bae715cf02a62af33",
"m_Group": {
"m_Id": ""
},
"m_Name": "Hash_Tchou_2_3 (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 182.00003051757813,
"y": 126.00000762939453,
"width": 250.5,
"height": 94.0000228881836
}
},
"m_Slots": [
{
"m_Id": "71dd96241ddee4829841864bc36c16ab"
},
{
"m_Id": "69af73888cd3338d9fa4eb50643a6d30"
}
],
"synonyms": [],
"m_Precision": 1,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 0,
"m_FunctionName": "Hash_Tchou_2_3",
"m_FunctionSource": "e7257ce6f0bb79b4e8d1d6c14ae3610c",
"m_FunctionSourceUsePragmas": true,
"m_FunctionBody": "Enter function body here..."
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "17cfbac2172abd8ab750cbc85629594e",
"m_Id": 0,
"m_DisplayName": "R Seed Coord",
"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": "30bd9a06e150728885e8efc5b35b86dd",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 32.00000762939453,
"y": 73.0,
"width": 150.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "30d9e7ae59a8e281bd8bc0fe5100f8d5"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "e8febd9393f60b8ca723ec06111edb24"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "30d9e7ae59a8e281bd8bc0fe5100f8d5",
"m_Id": 0,
"m_DisplayName": "G Seed Coord",
"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": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "3eea43880af6878e8f39c9b818465c6e",
"m_Guid": {
"m_GuidSerialized": "bf4858ac-0b17-4f0b-a488-8884dce0c4a7"
},
"m_Name": "R Seed Coord",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector2_7FAF7845",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_PerRendererData": false,
"m_customAttributes": [],
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "3fb4aa6f02817f8d857714d780e0069b",
"m_Id": 1,
"m_DisplayName": "random3",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "random3",
"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": [
"X",
"Y",
"Z"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "41298a61fad0228aac4a382505c4ef62",
"m_Id": 0,
"m_DisplayName": "B Seed Coord",
"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.StickyNoteData",
"m_ObjectId": "443d1153937146799c497b7f2aab1206",
"m_Title": "Fast Hash Function",
"m_Content": "Designed by Chris Tchou, this hash function is as fast and efficient as we can make it.",
"m_TextSize": 0,
"m_Theme": 0,
"m_Position": {
"serializedVersion": "2",
"x": 205.00001525878907,
"y": -164.00001525878907,
"width": 213.2250213623047,
"height": 100.0
},
"m_Group": {
"m_Id": ""
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "59715a0d8289e18f9c6e71cd69dcd94c",
"m_Group": {
"m_Id": ""
},
"m_Name": "Hash_Tchou_2_3 (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 182.00003051757813,
"y": 33.00000762939453,
"width": 250.5,
"height": 94.00000762939453
}
},
"m_Slots": [
{
"m_Id": "bbdbf3b871336c8fb662e246ebd0332b"
},
{
"m_Id": "3fb4aa6f02817f8d857714d780e0069b"
}
],
"synonyms": [],
"m_Precision": 1,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 0,
"m_FunctionName": "Hash_Tchou_2_3",
"m_FunctionSource": "e7257ce6f0bb79b4e8d1d6c14ae3610c",
"m_FunctionSourceUsePragmas": true,
"m_FunctionBody": "Enter function body here..."
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "69af73888cd3338d9fa4eb50643a6d30",
"m_Id": 1,
"m_DisplayName": "random3",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "random3",
"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": [
"X",
"Y",
"Z"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "71dd96241ddee4829841864bc36c16ab",
"m_Id": 5,
"m_DisplayName": "randomSeedCoord",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "randomSeedCoord",
"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": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "83a09f85ae0fdc85a8cee46af63bf184",
"m_Guid": {
"m_GuidSerialized": "e949691b-753c-4d00-80b2-aef3acf3e042"
},
"m_Name": "B Seed Coord",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector2_EE4DA59B",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_PerRendererData": false,
"m_customAttributes": [],
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "8e82de0a48c1608490733d1c2faa9264",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 33.000003814697269,
"y": 166.00001525878907,
"width": 149.00001525878907,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "41298a61fad0228aac4a382505c4ef62"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "83a09f85ae0fdc85a8cee46af63bf184"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "94d79781f02e1589a8d6a653d98896cc",
"m_Id": 1,
"m_DisplayName": "random3",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "random3",
"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": [
"X",
"Y",
"Z"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
"m_ObjectId": "b6d3a32422bc4f9fb9b571a87433ee44",
"m_Title": "GridRandom3",
"m_Content": "used for hex grid tiling, this node takes in the three sets of hex uv coordinates produced by the GetHexGridTriangle node and uses them to generate three random vec3 hash values. These values can then be passed into the random input of the RandomScaleOffsetUV node to create uv coordinates with random scale and offset values.",
"m_TextSize": 0,
"m_Theme": 0,
"m_Position": {
"serializedVersion": "2",
"x": 74.00000762939453,
"y": 255.50003051757813,
"width": 266.0000305175781,
"height": 144.25
},
"m_Group": {
"m_Id": ""
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "bbdbf3b871336c8fb662e246ebd0332b",
"m_Id": 5,
"m_DisplayName": "randomSeedCoord",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "randomSeedCoord",
"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": "bce226ed39a60489860b786cb56dcd51",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 33.00000762939453,
"y": -21.000001907348634,
"width": 149.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "17cfbac2172abd8ab750cbc85629594e"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "3eea43880af6878e8f39c9b818465c6e"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "c6103d172cb33e83a8fffdb01f4bced6",
"m_Id": 2,
"m_DisplayName": "G random3",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Grandom3",
"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": [
"X",
"Y",
"Z"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "c9864dfb0cdc4d84bd74c47ea196f203",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 456.5000305175781,
"y": 8.999998092651368,
"width": 113.00003051757813,
"height": 125.0
}
},
"m_Slots": [
{
"m_Id": "e43a4eaecbba4d838d460ba925587bdb"
},
{
"m_Id": "c6103d172cb33e83a8fffdb01f4bced6"
},
{
"m_Id": "dde4c976be40a38ab02ba1a253395f53"
}
],
"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.Vector2MaterialSlot",
"m_ObjectId": "d15f72c75e6aa28baa1ed0ab95228168",
"m_Id": 5,
"m_DisplayName": "randomSeedCoord",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "randomSeedCoord",
"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.Vector3MaterialSlot",
"m_ObjectId": "dde4c976be40a38ab02ba1a253395f53",
"m_Id": 3,
"m_DisplayName": "B random3",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Brandom3",
"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": [
"X",
"Y",
"Z"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "e43a4eaecbba4d838d460ba925587bdb",
"m_Id": 1,
"m_DisplayName": "R random3",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Rrandom3",
"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": [
"X",
"Y",
"Z"
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "e8febd9393f60b8ca723ec06111edb24",
"m_Guid": {
"m_GuidSerialized": "32ff142d-e6ae-4eac-b653-078766467f6b"
},
"m_Name": "G Seed Coord",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector2_DEB39B39",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_PerRendererData": false,
"m_customAttributes": [],
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "f9cf3cf2ba7af588871f6a3519413687",
"m_Group": {
"m_Id": ""
},
"m_Name": "Hash_Tchou_2_3 (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 182.00003051757813,
"y": -61.00001907348633,
"width": 250.5,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "d15f72c75e6aa28baa1ed0ab95228168"
},
{
"m_Id": "94d79781f02e1589a8d6a653d98896cc"
}
],
"synonyms": [],
"m_Precision": 1,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 0,
"m_FunctionName": "Hash_Tchou_2_3",
"m_FunctionSource": "e7257ce6f0bb79b4e8d1d6c14ae3610c",
"m_FunctionSourceUsePragmas": true,
"m_FunctionBody": "Enter function body here..."
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "ffe04c9a01f04f7698bbbeb5c6b2f37d",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "3eea43880af6878e8f39c9b818465c6e"
},
{
"m_Id": "e8febd9393f60b8ca723ec06111edb24"
},
{
"m_Id": "83a09f85ae0fdc85a8cee46af63bf184"
}
]
}