9a8b846baf
* Added a new binding type, SkEffectBinding. This stores another entire effect params structure (so the JSON is just nested). The name is a callable value that spawns a new instance of that effect, inheriting the parameters of the spawning effect or particle (depending on which kind of script made the call). * Broke up the monolithic update function into some helpers, got some code reuse with the script calling logic. * Unlike particle capacity, there is no upper limit on child effects (yet), so it's easy to trigger runaway memory and CPU consumption. Be careful. * Added death scripts to effects and particles, which are a common place to want to spawn sub-effects. Like spawn, these run on each loop, but for one-shots they play at the end. Even with loops, this is helpful for timing sub-effects (see fireworks2.json). * Finally, added a much more comprehensive example effect, raincloud.json. This includes a total of three effects, to generate a cloud, raindrops, and splashes when those drops hit "the ground". Change-Id: I3d7b72bcbb684642cd9723518b67ab1c7d7a538a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/242479 Reviewed-by: Michael Ludwig <michaelludwig@google.com> Commit-Queue: Brian Osman <brianosman@google.com> |
||
---|---|---|
.. | ||
android_fonts | ||
empty_images | ||
fonts | ||
icc_profiles | ||
images | ||
invalid_images | ||
lua | ||
nima | ||
particles | ||
skottie | ||
text | ||
Cowboy.svg | ||
crbug769134.fil | ||
nov-talk-sequence.txt | ||
pdf_command_stream.txt | ||
README | ||
SkVMTest.expected |
The resources directory includes some third party content used by Skia. Licenses for that code are included in this file. Openclipart Openclipart uses the Creative Commons Zero 1.0 Public Domain License every time an artist uploads a piece of clipart to Openclipart to make it clear the artist is releasing the creative work for anyone to use for any reason, even commercially. This act of "sharing" is the foundation Openclipart is based upon. More details on the license can be found at https://creativecommons.org/publicdomain/zero/1.0/. LGPL or compatible (as implied by inclusion in KDE SVN) http://websvn.kde.org/trunk/tests/ksvgtests/custom/cowboy.svg