559ffe4a23
Also removed some older effects that weren't interesting, improved others, cleaned up the unused functions in several, and renamed most of them to reflect which feature they're demonstrating. Change-Id: Ib44a00ec3d25e852a1d1661918137ba13d30c86b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/244119 Reviewed-by: Michael Ludwig <michaelludwig@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
24 lines
531 B
JSON
24 lines
531 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 * 360);",
|
|
" p.pos = float2(cos(a), sin(a)) * 40;",
|
|
" p.vel = p.pos;",
|
|
" p.scale = 0.5;",
|
|
"}",
|
|
""
|
|
],
|
|
"Bindings": []
|
|
} |