95c26efc90
Change-Id: I2cb6255a553852a292427d6dc9ef8c5ed7f8286d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/252926 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Mike Reed <reed@google.com>
25 lines
567 B
JSON
25 lines
567 B
JSON
{
|
|
"MaxCount": 4000,
|
|
"Drawable": {
|
|
"Type": "SkCircleDrawable",
|
|
"Radius": 3
|
|
},
|
|
"EffectCode": [
|
|
"void effectUpdate(inout Effect effect) {",
|
|
" effect.rate = (sin(radians(effect.age * 720)) + 0.7) * 200;",
|
|
"}",
|
|
""
|
|
],
|
|
"Code": [
|
|
"void spawn(inout Particle p) {",
|
|
" p.lifetime = 6;",
|
|
" float a = radians(rand(p.seed) * 360);",
|
|
" float2 ofs = float2(cos(a), sin(a)) * 40;",
|
|
" p.pos += ofs;",
|
|
" p.vel = ofs;",
|
|
" p.scale = 0.5;",
|
|
"}",
|
|
""
|
|
],
|
|
"Bindings": []
|
|
} |