MotionScript

@motion-script/core


@motion-script/core / SkSLOptions

Interface: SkSLOptions

Defined in: attributes/shape/effects/chain.ts:155

Custom SkSL shader. mode selects the path:

  • 'foreground' (the default) — the shader generates colour and is composited onto the node's layer with blendMode.
  • 'backdrop' — the shader receives uniform shader u_backdrop (a snapshot of what is painted beneath the node) and resamples it. blendMode is unused.

Extends

Properties

blendMode?

optional blendMode?: "color" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "luminosity" | "normal"

Defined in: attributes/shape/effects/chain.ts:161

How a foreground shader composites onto the layer (default 'screen').


mode?

optional mode?: EffectMode

Defined in: attributes/shape/effects/effect-data.ts:83

Inherited from

EffectOptions.mode


shader

shader: string

Defined in: attributes/shape/effects/chain.ts:157

SkSL source. Uniforms declared after any built-ins are supplied via uniforms.


uniforms?

optional uniforms?: SkSLUniform[]

Defined in: attributes/shape/effects/chain.ts:159

Values in declaration order — lerped between animation frames (default []).