@motion-script/core / EffectSurface
Type Alias: EffectSurface
EffectSurface =
"filter"|"shader"
Defined in: attributes/shape/effects/effect-data.ts:27
How a backend must realise an effect.
"filter"(the default) — the effect transforms colours in place, so it composes as a plain image filter alongside its neighbours in the chain."shader"— the effect resamples pixel positions (warps, bands, or otherwise reads neighbouring texels), so it needs the content snapshotted into a texture and redrawn through a lens rather than composed.
This is a statement about the effect, not about any particular backend: it
says the effect needs random access to its source, which is why it belongs
here next to lerp/equals rather than in the renderer.