Skip to content

ApiLayerEffect

One layer of a visual effect composition. The subtype is the technique, so a technique’s knobs exist only on the type that reads them - there is no radius on a chromatic layer to mis-set.

Build one with API.VisualEffects.NewTintLayer, API.VisualEffects.NewBlurLayer, API.VisualEffects.NewRadialBlurLayer, API.VisualEffects.NewChromaticLayer or API.VisualEffects.NewSaturationLayer, each of which hands back the client’s own defaults for that technique. Fixed set: one per pass compiled into the shader, and no way to describe another.

Type: ApiShapeSpec?

Where on screen the layer lives and how its boundary breaks up. Every technique masks with this - a distortion layer’s mask doubles as its strength.

Type: ApiNoiseSpec?

How the layer moves and what texture it has.

Type: double

Peak strength where the mask is full: the alpha a tint is painted at, or the degree to which a distortion replaces the sharp frame. The occurrence’s intensity, the fade envelope and the user’s own intensity setting can only attenuate this.

Type: ApiPulseSpec?

How the strength swells over time, or all zero for a steady layer.

No fields found.

No enums found.