threejs-worldgen
    Preparing search index...

    Interface WorldSample

    Everything known about one point of the world. Reuse one object across calls (pass it as out).

    interface WorldSample {
        biomes: Int32Array;
        continentalness: number;
        count: number;
        elevation: number;
        erosion: number;
        moisture: number;
        mountain: number;
        river: number;
        temperature: number;
        valley: number;
        waterLevel: number;
        weights: Float32Array;
    }
    Index
    biomes: Int32Array

    Biome indices into world.options.biomes, strongest first (length count).

    continentalness: number

    Continentalness, −1 (deep ocean) … 1 (deep inland).

    count: number

    Number of valid entries in biomes/weights.

    elevation: number

    Height above the base surface (plane y = 0 / planet radius), metres.

    erosion: number

    Erosion field 0 (rugged) … 1 (flat).

    moisture: number

    Moisture 0 … 1.

    mountain: number

    Mountain contribution 0 … 1 (share of full mountain height).

    river: number

    0 … 1 strength of the river channel here.

    temperature: number

    Temperature at this altitude, °C.

    valley: number

    0 … 1 strength of the river valley here.

    waterLevel: number

    Water surface height (sea or river), or NaN where dry.

    weights: Float32Array

    Weights matching biomes, summing to 1.