Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class VignetteElement

    Vignette effect parameters.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    darkness: number = 0.5

    Controls the intensity of the vignette effect (default: 0.5)

    enabled: boolean = true

    If false, the effect will be bypassed (cheap).

    offset: number = 0.8

    Controls the outer radius of the vignette effect (default: 0.8).

    roundness: number = 2.0

    Controls the shape. 2.0 = elliptical, 6.0+ = rounded rectangle (default: 2.0)

    type: VIGNETTE = PostProcessingEffectType.VIGNETTE

    Unique string identifier for the effect.