MotionScript

@motion-script/core


@motion-script/core / foregroundShaderEffects

Function: foregroundShaderEffects()

foregroundShaderEffects(effects): SceneEffect[]

Defined in: attributes/shape/effects/backdrop.ts:39

Foreground effects that warp/band the node's own content and therefore need a snapshot-and-redraw scope rather than a composable image filter.

Driven by each effect's declared EffectSurface, so adding a shader effect needs no edit here. Author chain order is preserved: index 0 is the outermost scope, and the renderer nests the rest inside it.

Parameters

effects

SceneEffect[]

Returns

SceneEffect[]