{ "FormatVersion": 3, "Id": "658b6a44-ff5a-42ca-8673-33874b752004"/*VectorFieldForce*/, "Inputs": [ { "Id": "27b2a405-e30c-4bc8-8058-468e6a806bd2"/*Amount*/, "DefaultValue": 1.0 }, { "Id": "e095070a-835d-4d48-8ef3-543f1b77168b"/*VectorField*/, "DefaultValue": null }, { "Id": "fb9d4bfa-6a4e-4647-861a-b8b5a5ca690d"/*Randomize*/, "DefaultValue": 0.0 } ], "Children": [ { "Id": "22b2566c-b6c6-4afa-8c6f-d4ba1141b914"/*ComputeShader*/, "SymbolId": "a256d70f-adb3-481d-a926-caf35bd3e64c", "InputValues": [ { "Id": "afb69c81-5063-4cb9-9d42-841b994b5ec0"/*Source*/, "Type": "System.String", "Value": "Lib:shaders/particles/FieldDistanceForce.hlsl" } ], "Outputs": [] }, { "Id": "2c6ed2e0-268c-4883-8d1d-c620e35d3501"/*_ExecuteParticleUpdate*/, "SymbolId": "b1352ba6-1164-4b44-9b69-a9eb802ea77d", "InputValues": [], "Outputs": [] }, { "Id": "530ed577-11b2-4298-91a8-2ec9bf404188"/*FloatsToBuffer*/, "SymbolId": "724da755-2d0c-42ab-8335-8c88ec5fb078", "InputValues": [], "Outputs": [] }, { "Id": "9aaf31a7-2129-4e45-89dc-e14fb7f1ae81"/*GetParticleComponents*/, "SymbolId": "e62c1fa0-6fcd-49f5-9cf8-d3081c8a5917", "InputValues": [], "Outputs": [] }, { "Id": "a0299036-d13f-49f7-a105-8bbecee882a3"/*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": [] }, { "Id": "abf2e118-5f8d-4b8b-8258-3cf6aa9e8aec"/*HasTimeChanged*/, "SymbolId": "2443b2fd-c397-4ea6-9588-b595f918cf01", "InputValues": [ { "Id": "bc112889-77a8-4967-a9b7-683b7c7017fe"/*Mode*/, "Type": "System.Int32", "Value": 3 } ], "Outputs": [] }, { "Id": "d52a8166-cff4-4745-8bc9-68a74cdbc4ee"/*IntsToBuffer*/, "SymbolId": "2eb20a76-f8f7-49e9-93a5-1e5981122b50", "InputValues": [], "Outputs": [] }, { "Id": "d5737167-dd19-4b50-9fca-59145e2f6c9c"/*CalcDispatchCount*/, "SymbolId": "eb68addb-ec59-416f-8608-ff9d2319f3a3", "InputValues": [], "Outputs": [] }, { "Id": "fa33fb59-f040-4b8d-8187-78fa5871d15b"/*GenerateShaderGraphCode*/, "SymbolId": "73c028d1-3de2-4269-b503-97f62bbce320", "InputValues": [ { "Id": "0b5cbbdf-afe7-4daf-9f1e-0e79792691f1"/*TemplateFilePath*/, "Type": "System.String", "Value": "Lib:shaders/particles/VectorFieldForce-sg.hlsl" } ], "Outputs": [] }, { "Id": "fe9ebacb-af8c-4b0c-bad4-5457df6073a4"/*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 SourcePoints : t0; \nRWStructuredBuffer 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": [] } ], "Connections": [ { "SourceParentOrChildId": "2c6ed2e0-268c-4883-8d1d-c620e35d3501", "SourceSlotId": "8788aeb6-e339-43d9-930b-8af3bf703b7a", "TargetParentOrChildId": "00000000-0000-0000-0000-000000000000", "TargetSlotId": "58fdb657-3667-478a-8a6b-8aa8fdf73b08" }, { "SourceParentOrChildId": "a0299036-d13f-49f7-a105-8bbecee882a3", "SourceSlotId": "c382284f-7e37-4eb0-b284-bc735247f26b", "TargetParentOrChildId": "2c6ed2e0-268c-4883-8d1d-c620e35d3501", "TargetSlotId": "5d480604-dcb1-455c-b961-d72218380c99" }, { "SourceParentOrChildId": "abf2e118-5f8d-4b8b-8258-3cf6aa9e8aec", "SourceSlotId": "4883b1ec-16c1-422f-8db6-c74c3d48e5be", "TargetParentOrChildId": "2c6ed2e0-268c-4883-8d1d-c620e35d3501", "TargetSlotId": "fa9f7267-d138-4219-ab78-ed37546a259c" }, { "SourceParentOrChildId": "00000000-0000-0000-0000-000000000000", "SourceSlotId": "27b2a405-e30c-4bc8-8058-468e6a806bd2", "TargetParentOrChildId": "530ed577-11b2-4298-91a8-2ec9bf404188", "TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c" }, { "SourceParentOrChildId": "00000000-0000-0000-0000-000000000000", "SourceSlotId": "fb9d4bfa-6a4e-4647-861a-b8b5a5ca690d", "TargetParentOrChildId": "530ed577-11b2-4298-91a8-2ec9bf404188", "TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c" }, { "SourceParentOrChildId": "9aaf31a7-2129-4e45-89dc-e14fb7f1ae81", "SourceSlotId": "641ece29-7845-43e5-85ca-f33912a1989f", "TargetParentOrChildId": "530ed577-11b2-4298-91a8-2ec9bf404188", "TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c" }, { "SourceParentOrChildId": "d5737167-dd19-4b50-9fca-59145e2f6c9c", "SourceSlotId": "35c0e513-812f-49e2-96fa-17541751c19b", "TargetParentOrChildId": "a0299036-d13f-49f7-a105-8bbecee882a3", "TargetSlotId": "180cae35-10e3-47f3-8191-f6ecea7d321c" }, { "SourceParentOrChildId": "fa33fb59-f040-4b8d-8187-78fa5871d15b", "SourceSlotId": "adf247cd-79cc-4d4e-b3c1-6a8b2d54683d", "TargetParentOrChildId": "a0299036-d13f-49f7-a105-8bbecee882a3", "TargetSlotId": "2e33837e-54c0-4519-8eda-04eee80690a5" }, { "SourceParentOrChildId": "530ed577-11b2-4298-91a8-2ec9bf404188", "SourceSlotId": "f5531ffb-dbde-45d3-af2a-bd90bcbf3710", "TargetParentOrChildId": "a0299036-d13f-49f7-a105-8bbecee882a3", "TargetSlotId": "34cf06fe-8f63-4f14-9c59-35a2c021b817" }, { "SourceParentOrChildId": "fa33fb59-f040-4b8d-8187-78fa5871d15b", "SourceSlotId": "1a9b5e15-e9a7-4ed4-aa1a-2072398921b4", "TargetParentOrChildId": "a0299036-d13f-49f7-a105-8bbecee882a3", "TargetSlotId": "34cf06fe-8f63-4f14-9c59-35a2c021b817" }, { "SourceParentOrChildId": "d52a8166-cff4-4745-8bc9-68a74cdbc4ee", "SourceSlotId": "f5531ffb-dbde-45d3-af2a-bd90bcbf3710", "TargetParentOrChildId": "a0299036-d13f-49f7-a105-8bbecee882a3", "TargetSlotId": "34cf06fe-8f63-4f14-9c59-35a2c021b817" }, { "SourceParentOrChildId": "9aaf31a7-2129-4e45-89dc-e14fb7f1ae81", "SourceSlotId": "231feefd-b07d-4fcd-9bd1-b74d0cd765b5", "TargetParentOrChildId": "a0299036-d13f-49f7-a105-8bbecee882a3", "TargetSlotId": "599384c2-bf6c-4953-be74-d363292ab1c7" }, { "SourceParentOrChildId": "fe9ebacb-af8c-4b0c-bad4-5457df6073a4", "SourceSlotId": "190e262f-6554-4b34-b5b6-6617a98ab123", "TargetParentOrChildId": "a0299036-d13f-49f7-a105-8bbecee882a3", "TargetSlotId": "5c0e9c96-9aba-4757-ae1f-cc50fb6173f1" }, { "SourceParentOrChildId": "9aaf31a7-2129-4e45-89dc-e14fb7f1ae81", "SourceSlotId": "2814600a-c45e-4bf8-ab24-b9d3c40d8077", "TargetParentOrChildId": "d52a8166-cff4-4745-8bc9-68a74cdbc4ee", "TargetSlotId": "49556d12-4cd1-4341-b9d8-c356668d296c" }, { "SourceParentOrChildId": "fe9ebacb-af8c-4b0c-bad4-5457df6073a4", "SourceSlotId": "a3e0a72f-68d0-4278-8b9b-f4cf33603305", "TargetParentOrChildId": "d5737167-dd19-4b50-9fca-59145e2f6c9c", "TargetSlotId": "3979e440-7888-4249-9975-74b21c6b813c" }, { "SourceParentOrChildId": "9aaf31a7-2129-4e45-89dc-e14fb7f1ae81", "SourceSlotId": "2814600a-c45e-4bf8-ab24-b9d3c40d8077", "TargetParentOrChildId": "d5737167-dd19-4b50-9fca-59145e2f6c9c", "TargetSlotId": "f79ccc37-05fd-4f81-97d6-6c1cafca180c" }, { "SourceParentOrChildId": "00000000-0000-0000-0000-000000000000", "SourceSlotId": "e095070a-835d-4d48-8ef3-543f1b77168b", "TargetParentOrChildId": "fa33fb59-f040-4b8d-8187-78fa5871d15b", "TargetSlotId": "ffc1c70e-b717-4337-916d-c3a13343e9cc" }, { "SourceParentOrChildId": "fa33fb59-f040-4b8d-8187-78fa5871d15b", "SourceSlotId": "a1ab0c16-ed15-4334-a529-10e3c217df1a", "TargetParentOrChildId": "fe9ebacb-af8c-4b0c-bad4-5457df6073a4", "TargetSlotId": "a8ee59c3-cb62-42e5-a3c9-f4968876c9cc" } ] }