LayerBlend

class LayerBlend(mode: LayerBlendMode = LayerBlendMode.NORMAL) : BlendPreset(source)

Blends the rgb channels of the layer with those of the base by mode, weighted by the alpha of the layer and opacity. The alpha of the base is kept. Changing the mode does not compile another shader.

Constructors

Link copied to clipboard
constructor(mode: LayerBlendMode = LayerBlendMode.NORMAL)

Properties

Link copied to clipboard
open override val contract: GlslContract

the signature of the dynamic parameter of this preset

Link copied to clipboard
open override val dynamicParameter: GlslFunction
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

true when this preset can read the values of fxContextLibrary, also through the presets in its slots, so that it changes over time even when nothing else does, see DynamicParameter.readsFxContext