2020-12-07 15:07:27 +00:00
|
|
|
{
|
|
|
|
"MaxCount": 800,
|
|
|
|
"Drawable": {
|
|
|
|
"Type": "SkCircleDrawable",
|
|
|
|
"Radius": 2
|
|
|
|
},
|
2021-02-01 19:47:30 +00:00
|
|
|
"Code": [
|
2020-12-07 15:07:27 +00:00
|
|
|
"void effectSpawn(inout Effect effect) {",
|
|
|
|
" effect.lifetime = 1;",
|
|
|
|
" effect.rate = 100;",
|
|
|
|
"}",
|
2021-02-01 19:47:30 +00:00
|
|
|
"",
|
2020-12-07 15:07:27 +00:00
|
|
|
"void spawn(inout Particle p) {",
|
|
|
|
" float4 pos_and_normal = my_path(rand(p.seed));",
|
|
|
|
" p.pos = pos_and_normal.xy;",
|
|
|
|
" p.vel = pos_and_normal.zw * -5;",
|
|
|
|
"",
|
|
|
|
" p.lifetime = 2;",
|
|
|
|
"}",
|
|
|
|
"",
|
|
|
|
"void update(inout Particle p) {",
|
|
|
|
"}",
|
|
|
|
""
|
|
|
|
],
|
|
|
|
"Bindings": [
|
|
|
|
{
|
|
|
|
"Type": "SkPathBinding",
|
|
|
|
"Name": "my_path",
|
|
|
|
"PathPath": "",
|
|
|
|
"PathName": "star"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|