rullino
    Preparing search index...

    Variable vignetteConst

    vignette: MultipassFilter<
        {
            amount: {
                default: -0.4;
                description: "Negative darkens the edges, positive lightens them.";
                label: "Amount";
                max: 1;
                min: -1;
                step: 0.01;
                type: "float";
            };
            feather: {
                default: 0.5;
                description: "How gradually the effect fades in; larger is softer.";
                label: "Feather";
                max: 1;
                min: 0.05;
                step: 0.01;
                type: "float";
            };
            midpoint: {
                default: 0.4;
                description: "How far from the centre the effect starts (the corners are 1).";
                label: "Midpoint";
                max: 1;
                min: 0;
                step: 0.01;
                type: "float";
            };
            roundness: {
                default: 0;
                description: "0 follows the shape of the picture; 1 makes the vignette a circle.";
                label: "Roundness";
                max: 1;
                min: 0;
                step: 0.01;
                type: "float";
            };
        },
    > = ...

    Darkens (amount < 0, multiplying linear light, to black at -1) or lightens (amount > 0, towards white) the edges. The effect starts at midpoint (normalised distance, corners = 1) and ramps up over feather with a smoothstep. Roundness 0 follows the image's shape, 1 is a circle.