190 lines
4.9 KiB
Plaintext
190 lines
4.9 KiB
Plaintext
{
|
|
"FormatVersion": 3,
|
|
"Id": "ed0bc47a-31ef-400b-b4e4-5552a859b309"/*CollisionForce*/,
|
|
"Description": "A simple simulation of sphere collision between points. The radius of the points is defined on emit by the [ParticleSystem]'s PointRadiusW factor.\n\nSome recommendations:\n1. Try to increase the radius (either by increasing the emit points W attribute or the radius factor) and adjust the [DrawPoints] radius accordingly.\n2. Try to increase [ParticleSystem] damping.\n",
|
|
"SymbolTags": "8",
|
|
"InputUis": [
|
|
{
|
|
"InputId": "0724bf0c-8f97-44de-bf42-6a89b89f1632"/*CellSize*/,
|
|
"Position": {
|
|
"X": 1963.3588,
|
|
"Y": 349.04147
|
|
},
|
|
"Min": 0.001,
|
|
"Max": 100.0,
|
|
"Scale": 0.01,
|
|
"ClampMin": true,
|
|
"ClampMax": true
|
|
},
|
|
{
|
|
"InputId": "5b3fcf3c-7155-401f-b3ac-3a4ac9d921df"/*AttractionDecay*/,
|
|
"Position": {
|
|
"X": 2489.1,
|
|
"Y": 617.99634
|
|
},
|
|
"AddPadding": "True"
|
|
},
|
|
{
|
|
"InputId": "78566405-8dee-4661-9cb7-489c8d322f64"/*IsEnabled*/,
|
|
"Position": {
|
|
"X": 3248.8274,
|
|
"Y": 83.25409
|
|
},
|
|
"AddPadding": "True"
|
|
},
|
|
{
|
|
"InputId": "91459607-22c1-4536-a384-8b1f1d8ecb64"/*CollistionResolve*/,
|
|
"Position": {
|
|
"X": 2489.1,
|
|
"Y": 652.9964
|
|
}
|
|
},
|
|
{
|
|
"InputId": "91966b2c-342a-420a-bad1-cbcf4d6af1ae"/*Attraction*/,
|
|
"Position": {
|
|
"X": 2489.1,
|
|
"Y": 547.99634
|
|
}
|
|
},
|
|
{
|
|
"InputId": "d0036a34-d7e4-4542-b231-5d1b687b0028"/*Bounciness*/,
|
|
"Position": {
|
|
"X": 2489.1,
|
|
"Y": 512.99634
|
|
},
|
|
"AddPadding": "True"
|
|
}
|
|
],
|
|
"SymbolChildUis": [
|
|
{
|
|
"ChildId": "02f3ed4a-bd5b-40c7-8bca-1b4e697d0984"/*_BuildSpatialHashMap*/,
|
|
"Position": {
|
|
"X": 2427.5542,
|
|
"Y": 57.85269
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "0c7fe6b5-c668-480e-a75d-842690488f7b"/*ComputeShader*/,
|
|
"Position": {
|
|
"X": 2628.708,
|
|
"Y": -2.2806854
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "0d705da7-9c19-4d99-b2d4-ab50ca862f0e"/*ComputeShaderStage*/,
|
|
"SectionId": "0a71289d-177f-4297-add3-5d5b7f281727",
|
|
"Position": {
|
|
"X": 2570.1177,
|
|
"Y": -278.78647
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "316462bd-10c1-45e8-bf8d-6ad7116ba7fa"/*GetParticleComponents*/,
|
|
"Position": {
|
|
"X": 1839.7899,
|
|
"Y": -59.58957
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "4427d469-c9ca-4978-95e4-f05ae43e766f"/*StructuredBufferWithViews*/,
|
|
"SectionId": "0a71289d-177f-4297-add3-5d5b7f281727",
|
|
"Position": {
|
|
"X": 2160.823,
|
|
"Y": -160.02792
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "50565741-6e91-4dd8-84da-61ed2968b196"/*ComputeShader*/,
|
|
"SectionId": "0a71289d-177f-4297-add3-5d5b7f281727",
|
|
"Position": {
|
|
"X": 2160.823,
|
|
"Y": -267.71378
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "595b25a0-599a-4730-92c6-d8785a0773f2"/*ComputeShaderStage*/,
|
|
"Position": {
|
|
"X": 2968.282,
|
|
"Y": 17.899628
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "5d60f5ef-5f06-453e-9aa9-6450fc5a1f2a"/*_ExecuteParticleUpdate*/,
|
|
"Position": {
|
|
"X": 3388.8274,
|
|
"Y": 48.25409
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "814d264e-1181-4569-a12a-a984f1b45f45"/*CalcDispatchCount*/,
|
|
"Position": {
|
|
"X": 2768.708,
|
|
"Y": 32.719315
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "8eba7baf-0085-4576-9a1d-81de46ed5d75"/*FloatsToBuffer*/,
|
|
"Style": "Resizable",
|
|
"Size": {
|
|
"X": 109.896416,
|
|
"Y": 86.29051
|
|
},
|
|
"Position": {
|
|
"X": 2629.1,
|
|
"Y": 442.99637
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "b292747b-1ded-4ea2-8448-e1e172cc729d"/*CalcDispatchCount*/,
|
|
"SectionId": "0a71289d-177f-4297-add3-5d5b7f281727",
|
|
"Position": {
|
|
"X": 2376.8535,
|
|
"Y": -234.39873
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "d57e0521-90eb-4b76-8277-061ea359145b"/*Execute*/,
|
|
"Position": {
|
|
"X": 3388.8274,
|
|
"Y": -56.74591
|
|
}
|
|
},
|
|
{
|
|
"ChildId": "f7be440e-238e-4509-be28-9b903dd99db9"/*GetBufferComponents*/,
|
|
"SectionId": "0a71289d-177f-4297-add3-5d5b7f281727",
|
|
"Position": {
|
|
"X": 2376.8535,
|
|
"Y": -165.39873
|
|
}
|
|
}
|
|
],
|
|
"OutputUis": [
|
|
{
|
|
"OutputId": "8c9461b8-9152-4389-938e-2ff67a6451ed"/*Particles*/,
|
|
"Position": {
|
|
"X": 3388.8274,
|
|
"Y": 118.25409
|
|
}
|
|
}
|
|
],
|
|
"Sections": [
|
|
{
|
|
"Id": "0a71289d-177f-4297-add3-5d5b7f281727",
|
|
"Title": "Sadly, the _BuildSpatialHashMap helper requires a point buffer, \nso we have to copy particles to point buffer :(\n\nFor optimization, we could implement a Particle-version of the spatial hash map and also find some method of sharing this\nbetween Forces.",
|
|
"Color": {
|
|
"X": 0.6,
|
|
"Y": 0.6,
|
|
"Z": 0.6,
|
|
"W": 1.0
|
|
},
|
|
"Position": {
|
|
"X": 2102.6223,
|
|
"Y": -373.5
|
|
},
|
|
"Size": {
|
|
"X": 639.2947,
|
|
"Y": 294.73605
|
|
}
|
|
}
|
|
]
|
|
} |