287 lines
11 KiB
Plaintext
287 lines
11 KiB
Plaintext
{
|
|
"FormatVersion": 3,
|
|
"Id": "42394232-51fa-4e75-851b-c2bca39de71a"/*FieldDistanceForce*/,
|
|
"Inputs": [
|
|
{
|
|
"Id": "3fd1169e-1640-4d67-b859-70815cb3d28f"/*Attraction*/,
|
|
"DefaultValue": 1.0
|
|
},
|
|
{
|
|
"Id": "43e90070-5841-441c-8658-7854b80003b9"/*Field*/,
|
|
"DefaultValue": null
|
|
},
|
|
{
|
|
"Id": "6e1099f2-78d7-4807-ba06-6b5354fb6ac9"/*NormalSamplingDistance*/,
|
|
"DefaultValue": 0.01
|
|
},
|
|
{
|
|
"Id": "8145f581-65bf-4965-81e9-2aed3622039f"/*Amount*/,
|
|
"DefaultValue": 1.0
|
|
},
|
|
{
|
|
"Id": "be2df23e-d32c-4cfe-947b-352113ccdff8"/*Repulsion*/,
|
|
"DefaultValue": 1.0
|
|
},
|
|
{
|
|
"Id": "fd65a976-577a-4c33-9660-ad7fac92c5f6"/*DecayWithDistance*/,
|
|
"DefaultValue": 0.0
|
|
}
|
|
],
|
|
"Children": [
|
|
{
|
|
"Id": "00136f4d-922b-4772-9a9b-f20f8a1ef8b4"/*SamplerState*/,
|
|
"SymbolId": "9515d59d-0bd5-406b-96da-6a5f60215700",
|
|
"InputValues": [],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "015545f7-cf0c-4321-89ec-790d65a6ab49"/*GetParticleComponents*/,
|
|
"SymbolId": "e62c1fa0-6fcd-49f5-9cf8-d3081c8a5917",
|
|
"InputValues": [],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "1cbf1d10-84a6-4325-81d7-3441c70bbe40"/*ComputeShaderFromSource*/,
|
|
"SymbolId": "4e5bc624-9cda-46a8-9681-7fd412ea3893",
|
|
"InputValues": [
|
|
{
|
|
"Id": "08399b7a-a390-4a11-83eb-36ac68f76bc6"/*DebugName*/,
|
|
"Type": "System.String",
|
|
"Value": "custom"
|
|
},
|
|
{
|
|
"Id": "a8ee59c3-cb62-42e5-a3c9-f4968876c9cc"/*Code*/,
|
|
"Type": "System.String",
|
|
"Value": "#include \"lib/shared/hash-functions.hlsl\"\n#include \"lib/shared/point.hlsl\"\n\ncbuffer Params : register(b1)\n{\n float A;\n float B;\n float C;\n float D;\n float E;\n}\n\nStructuredBuffer<Point> SourcePoints : t0; \nRWStructuredBuffer<Point> ResultPoints : u0; \n\n[numthreads(64,1,1)]\nvoid main(uint3 i : SV_DispatchThreadID)\n{\n uint numStructs, stride;\n SourcePoints.GetDimensions(numStructs, stride);\n if(i.x >= numStructs) { \n return;\n }\n\n Point p = SourcePoints[i.x];\n\n ResultPoints[i.x].position = p.position + float3(0,0.1,0);\n ResultPoints[i.x].rotation = p.rotation;\n ResultPoints[i.x].w = p.w ;\n}\n"
|
|
}
|
|
],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "234dfeac-296b-458b-ac37-53dd0437cc34"/*FloatsToBuffer*/,
|
|
"SymbolId": "724da755-2d0c-42ab-8335-8c88ec5fb078",
|
|
"InputValues": [],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "299a8fd7-db02-46bb-9a48-198bf7f4db0f"/*_ExecuteParticleUpdate*/,
|
|
"SymbolId": "b1352ba6-1164-4b44-9b69-a9eb802ea77d",
|
|
"InputValues": [],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "2d96af48-a019-4b08-a3b0-71466a6850d7"/*HasTimeChanged*/,
|
|
"SymbolId": "2443b2fd-c397-4ea6-9588-b595f918cf01",
|
|
"InputValues": [
|
|
{
|
|
"Id": "bc112889-77a8-4967-a9b7-683b7c7017fe"/*Mode*/,
|
|
"Type": "System.Int32",
|
|
"Value": 3
|
|
}
|
|
],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "39983d4f-12ea-40a9-92a8-c9a05b1828cc"/*GenerateShaderGraphCode*/,
|
|
"SymbolId": "73c028d1-3de2-4269-b503-97f62bbce320",
|
|
"InputValues": [
|
|
{
|
|
"Id": "0b5cbbdf-afe7-4daf-9f1e-0e79792691f1"/*TemplateFilePath*/,
|
|
"Type": "System.String",
|
|
"Value": "Lib:shaders/particles/FieldDistanceForce.hlsl"
|
|
}
|
|
],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "4e80fb17-3331-41f1-a69a-c7ae1a19f812"/*Clamped*/,
|
|
"SymbolId": "9515d59d-0bd5-406b-96da-6a5f60215700",
|
|
"Name": "Clamped",
|
|
"InputValues": [
|
|
{
|
|
"Id": "93d8bf26-5067-4ccc-b4cb-e03970686462"/*AddressW*/,
|
|
"Type": "SharpDX.Direct3D11.TextureAddressMode",
|
|
"Value": "Clamp"
|
|
},
|
|
{
|
|
"Id": "e7c95fd5-14d1-434f-a140-f22ef69076ab"/*AddressU*/,
|
|
"Type": "SharpDX.Direct3D11.TextureAddressMode",
|
|
"Value": "Clamp"
|
|
},
|
|
{
|
|
"Id": "fdeb503f-09c6-48d1-8853-7426f68cdec3"/*AddressV*/,
|
|
"Type": "SharpDX.Direct3D11.TextureAddressMode",
|
|
"Value": "Clamp"
|
|
}
|
|
],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "80d17645-13ff-4738-967c-c14898e5e5cf"/*IntsToBuffer*/,
|
|
"SymbolId": "2eb20a76-f8f7-49e9-93a5-1e5981122b50",
|
|
"InputValues": [],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "8a70f9f8-ac44-45b1-b26a-7f6419a3883e"/*CalcDispatchCount*/,
|
|
"SymbolId": "eb68addb-ec59-416f-8608-ff9d2319f3a3",
|
|
"InputValues": [],
|
|
"Outputs": []
|
|
},
|
|
{
|
|
"Id": "b72f830c-2e42-45b9-bd88-4ea863526488"/*ComputeShaderStage*/,
|
|
"SymbolId": "8bef116d-7d1c-4c1b-b902-25c1d5e925a9",
|
|
"InputValues": [
|
|
{
|
|
"Id": "0105aca4-5fd5-40c8-82a5-e919bb7dd507"/*UavBufferCounter*/,
|
|
"Type": "System.Int32",
|
|
"Value": 2
|
|
},
|
|
{
|
|
"Id": "180cae35-10e3-47f3-8191-f6ecea7d321c"/*Dispatch*/,
|
|
"Type": "T3.Core.DataTypes.Vector.Int3",
|
|
"Value": {
|
|
"X": 64,
|
|
"Y": 1,
|
|
"Z": 1
|
|
}
|
|
}
|
|
],
|
|
"Outputs": []
|
|
}
|
|
],
|
|
"Connections": [
|
|
{
|
|
"SourceParentOrChildId": "299a8fd7-db02-46bb-9a48-198bf7f4db0f",
|
|
"SourceSlotId": "8788aeb6-e339-43d9-930b-8af3bf703b7a",
|
|
"TargetParentOrChildId": "00000000-0000-0000-0000-000000000000",
|
|
"TargetSlotId": "90e8bd09-857a-4de0-b7a6-ab2be17af8ae"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "39983d4f-12ea-40a9-92a8-c9a05b1828cc",
|
|
"SourceSlotId": "a1ab0c16-ed15-4334-a529-10e3c217df1a",
|
|
"TargetParentOrChildId": "1cbf1d10-84a6-4325-81d7-3441c70bbe40",
|
|
"TargetSlotId": "a8ee59c3-cb62-42e5-a3c9-f4968876c9cc"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "00000000-0000-0000-0000-000000000000",
|
|
"SourceSlotId": "8145f581-65bf-4965-81e9-2aed3622039f",
|
|
"TargetParentOrChildId": "234dfeac-296b-458b-ac37-53dd0437cc34",
|
|
"TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "00000000-0000-0000-0000-000000000000",
|
|
"SourceSlotId": "3fd1169e-1640-4d67-b859-70815cb3d28f",
|
|
"TargetParentOrChildId": "234dfeac-296b-458b-ac37-53dd0437cc34",
|
|
"TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "00000000-0000-0000-0000-000000000000",
|
|
"SourceSlotId": "be2df23e-d32c-4cfe-947b-352113ccdff8",
|
|
"TargetParentOrChildId": "234dfeac-296b-458b-ac37-53dd0437cc34",
|
|
"TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "00000000-0000-0000-0000-000000000000",
|
|
"SourceSlotId": "6e1099f2-78d7-4807-ba06-6b5354fb6ac9",
|
|
"TargetParentOrChildId": "234dfeac-296b-458b-ac37-53dd0437cc34",
|
|
"TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "00000000-0000-0000-0000-000000000000",
|
|
"SourceSlotId": "fd65a976-577a-4c33-9660-ad7fac92c5f6",
|
|
"TargetParentOrChildId": "234dfeac-296b-458b-ac37-53dd0437cc34",
|
|
"TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"SourceSlotId": "c382284f-7e37-4eb0-b284-bc735247f26b",
|
|
"TargetParentOrChildId": "299a8fd7-db02-46bb-9a48-198bf7f4db0f",
|
|
"TargetSlotId": "5d480604-dcb1-455c-b961-d72218380c99"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "2d96af48-a019-4b08-a3b0-71466a6850d7",
|
|
"SourceSlotId": "4883b1ec-16c1-422f-8db6-c74c3d48e5be",
|
|
"TargetParentOrChildId": "299a8fd7-db02-46bb-9a48-198bf7f4db0f",
|
|
"TargetSlotId": "fa9f7267-d138-4219-ab78-ed37546a259c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "00000000-0000-0000-0000-000000000000",
|
|
"SourceSlotId": "43e90070-5841-441c-8658-7854b80003b9",
|
|
"TargetParentOrChildId": "39983d4f-12ea-40a9-92a8-c9a05b1828cc",
|
|
"TargetSlotId": "ffc1c70e-b717-4337-916d-c3a13343e9cc"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "015545f7-cf0c-4321-89ec-790d65a6ab49",
|
|
"SourceSlotId": "2814600a-c45e-4bf8-ab24-b9d3c40d8077",
|
|
"TargetParentOrChildId": "80d17645-13ff-4738-967c-c14898e5e5cf",
|
|
"TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "1cbf1d10-84a6-4325-81d7-3441c70bbe40",
|
|
"SourceSlotId": "a3e0a72f-68d0-4278-8b9b-f4cf33603305",
|
|
"TargetParentOrChildId": "8a70f9f8-ac44-45b1-b26a-7f6419a3883e",
|
|
"TargetSlotId": "3979e440-7888-4249-9975-74b21c6b813c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "015545f7-cf0c-4321-89ec-790d65a6ab49",
|
|
"SourceSlotId": "2814600a-c45e-4bf8-ab24-b9d3c40d8077",
|
|
"TargetParentOrChildId": "8a70f9f8-ac44-45b1-b26a-7f6419a3883e",
|
|
"TargetSlotId": "f79ccc37-05fd-4f81-97d6-6c1cafca180c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "8a70f9f8-ac44-45b1-b26a-7f6419a3883e",
|
|
"SourceSlotId": "35c0e513-812f-49e2-96fa-17541751c19b",
|
|
"TargetParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"TargetSlotId": "180cae35-10e3-47f3-8191-f6ecea7d321c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "39983d4f-12ea-40a9-92a8-c9a05b1828cc",
|
|
"SourceSlotId": "adf247cd-79cc-4d4e-b3c1-6a8b2d54683d",
|
|
"TargetParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"TargetSlotId": "2e33837e-54c0-4519-8eda-04eee80690a5"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "234dfeac-296b-458b-ac37-53dd0437cc34",
|
|
"SourceSlotId": "f5531ffb-dbde-45d3-af2a-bd90bcbf3710",
|
|
"TargetParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"TargetSlotId": "34cf06fe-8f63-4f14-9c59-35a2c021b817"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "39983d4f-12ea-40a9-92a8-c9a05b1828cc",
|
|
"SourceSlotId": "1a9b5e15-e9a7-4ed4-aa1a-2072398921b4",
|
|
"TargetParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"TargetSlotId": "34cf06fe-8f63-4f14-9c59-35a2c021b817"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "80d17645-13ff-4738-967c-c14898e5e5cf",
|
|
"SourceSlotId": "f5531ffb-dbde-45d3-af2a-bd90bcbf3710",
|
|
"TargetParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"TargetSlotId": "34cf06fe-8f63-4f14-9c59-35a2c021b817"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "4e80fb17-3331-41f1-a69a-c7ae1a19f812",
|
|
"SourceSlotId": "0e45c596-c80f-4927-941f-e3199401aa10",
|
|
"TargetParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"TargetSlotId": "4047c9e7-1edb-4c71-b85c-c1b87058c81c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "00136f4d-922b-4772-9a9b-f20f8a1ef8b4",
|
|
"SourceSlotId": "0e45c596-c80f-4927-941f-e3199401aa10",
|
|
"TargetParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"TargetSlotId": "4047c9e7-1edb-4c71-b85c-c1b87058c81c"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "015545f7-cf0c-4321-89ec-790d65a6ab49",
|
|
"SourceSlotId": "231feefd-b07d-4fcd-9bd1-b74d0cd765b5",
|
|
"TargetParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"TargetSlotId": "599384c2-bf6c-4953-be74-d363292ab1c7"
|
|
},
|
|
{
|
|
"SourceParentOrChildId": "1cbf1d10-84a6-4325-81d7-3441c70bbe40",
|
|
"SourceSlotId": "190e262f-6554-4b34-b5b6-6617a98ab123",
|
|
"TargetParentOrChildId": "b72f830c-2e42-45b9-bd88-4ea863526488",
|
|
"TargetSlotId": "5c0e9c96-9aba-4757-ae1f-cc50fb6173f1"
|
|
}
|
|
]
|
|
} |