@motion-script/core / prepareFilter
Function: prepareFilter()
prepareFilter(
filter,tracker,width,height):void
Defined in: attributes/shape/filters/registry.ts:93
Let filter declare the assets it needs at the current frame, so they are
loaded before it renders.
The filters defined here reference nothing, but an EffectFilter can —
texture and displace sample an image, ascii bakes a glyph atlas — and
without this the backend's synchronous lookup returns nothing, which the
effect can only read as "no texture". Called from the image/video fills'
prepare, alongside their own requestImage.
Parameters
filter
tracker
width
number
height
number
Returns
void