@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 withblendMode.'backdrop'— the shader receivesuniform shader u_backdrop(a snapshot of what is painted beneath the node) and resamples it.blendModeis unused.
Extends
Properties
blendMode?
optionalblendMode?:"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?
optionalmode?: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?
optionaluniforms?:SkSLUniform[]
Defined in: attributes/shape/effects/chain.ts:159
Values in declaration order — lerped between animation frames (default []).