MotionScript

@motion-script/core


@motion-script/core / filterSurface

Function: filterSurface()

filterSurface(filter): "filter" | "shader"

Defined in: attributes/shape/filters/registry.ts:109

How a backend must realise filter"shader" when it resamples pixel positions and therefore has to wrap the fill's shader rather than compose into its ImageFilter chain. The filters defined here are all "filter"; an EffectFilter answers with its effect's own declaration.

Parameters

filter

AnyFilter

Returns

"filter" | "shader"