threejs-worldgen
    Preparing search index...

    Interface RockParams

    Every parameter of a generated rock. Lengths in metres. Plain JSON.

    interface RockParams {
        baseCut: number;
        color: string;
        colorVariation: number;
        detail: number;
        elongation: number;
        facets: number;
        flatness: number;
        moss: number;
        mossColor: string;
        noiseScale: number;
        roughness: number;
        size: number;
        spacing: number;
    }
    Index
    baseCut: number

    Share of the rock below which it is cut flat (sits on the ground), 0..0.5.

    color: string

    Base colour, CSS.

    colorVariation: number

    Brightness variation across the surface, 0..1.

    detail: number

    Icosphere subdivisions (0..5). Each level has 4× the triangles.

    elongation: number

    Stretch along x relative to z (1 = round in plan).

    facets: number

    Faceting and cracks from Worley noise, relative to size.

    flatness: number

    Vertical squash, 0..1 (0 = as tall as wide, 0.6 = a slab).

    moss: number

    Moss or lichen on upward faces, 0..1.

    mossColor: string

    Moss colour, CSS.

    noiseScale: number

    Noise frequency over the unit sphere; higher = smaller features.

    roughness: number

    Large-scale lumpiness (fBm displacement), relative to size.

    size: number

    Approximate diameter.

    spacing: number

    Suggested minimum distance between two rocks of this kind when scattered.