threejs-worldgen
    Preparing search index...

    Interface LightningOptions

    Every lightning setting. Plain JSON.

    interface LightningOptions {
        branches: number;
        branchLength: number;
        cloudHeight: number;
        color: string;
        detail: number;
        duration: number;
        flash: { color: string; intensity: number };
        intensity: number;
        jaggedness: number;
        maxBolts: number;
        radius: number;
        width: number;
    }
    Index
    branches: number

    Side branches per bolt.

    branchLength: number

    Branch length as a share of cloudHeight.

    cloudHeight: number

    Height of the cloud base above the strike point, metres.

    color: string

    Bolt colour (#rrggbb).

    detail: number

    Midpoint-displacement levels of the main channel (2^detail segments).

    duration: number

    How long a strike stays visible (with its return strokes), seconds.

    flash: { color: string; intensity: number }

    Scene light flash.

    Type Declaration

    • color: string

      Light colour (#rrggbb).

    • intensity: number

      Peak light intensity.

    intensity: number

    Bolt brightness (unlit, additive; > 1 blooms).

    jaggedness: number

    Sideways kinks as a share of segment length.

    maxBolts: number

    Most bolts drawn at once.

    radius: number

    Strikes within this distance of the camera are drawn, metres.

    width: number

    Main channel width, metres.