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

    Interface MeshRim

    A rim (Fresnel) term on mesh particles: a colour that grows where the surface turns away from the camera, pow(1 - |N·V|, power) * strength. Unset: no rim. Only mesh particles draw it.

    interface MeshRim {
        color: [number, number, number];
        mode: "add" | "mix" | "fade";
        power: number;
        strength: number;
    }
    Index
    color: [number, number, number]

    Edge colour, in gamma space like the particle colours (see shaders/chunks/colorSpace.ts). Default [1, 1, 1].

    mode: "add" | "mix" | "fade"

    'add' (default) adds the colour, for a glowing edge; 'mix' blends the surface toward it, for an outline (a dark ink line with a dark colour); 'fade' leaves the colour and fades the faces turned to the camera by strength instead, alpha times 1 - strength * (1 - edge): a wall of light that reads thick along its silhouette and thin across its face.

    power: number

    Falloff exponent; higher keeps the rim to a thinner edge. Default 2.

    strength: number

    How much of the rim is applied, usually 0…1. Default 1.