babylon.quarks - v1.0.0
    Preparing search index...

    Interface ParticleErosion

    Alpha erosion: the particle's alpha decides how much of its shape is left instead of how transparent it is, so ColorOverLife fading alpha out dissolves (noise mask) or wipes (gradient mask) the shape away. See VFXBatchSettings.erosion.

    interface ParticleErosion {
        edgeColor: [number, number, number];
        edgeWidth: number;
        mask: BaseTexture | null;
        maskUV: TextureUV;
        softness: number;
    }
    Index
    edgeColor: [number, number, number]

    Colour added in the edge band, in gamma space like the particle colours, may exceed 1. Default [1, 1, 1].

    edgeWidth: number

    Width of the glowing band above the cut, in mask units; 0 (default) draws none.

    mask: BaseTexture | null

    Mask whose red channel orders what goes first, laid by maskUV. Null: the map's own alpha, so a soft shape shrinks from its edges.

    maskUV: TextureUV

    How the mask is laid over the particle, see TextureUV. On UV channel 1 a gradient mask wipes a whole trail or mesh however its map repeats. Default channel 0, untiled, still.

    softness: number

    Width of the soft transition at the cut, in mask units. Default 0.05.