threejs-worldgen
    Preparing search index...

    Interface WeatherOptions

    Every weather setting. Plain JSON: save it, share it, send it to a worker, bind it to a GUI.

    interface WeatherOptions {
        climate: { moisture: number; temperature: number };
        fog: FogSettings;
        fronts: FrontSettings;
        precipitation: RainSettings;
        seed: string | number;
        storms: StormSettings;
        surface: SurfaceSettings;
        temperatureOffset: number;
        wind: WindSettings;
    }
    Index
    climate: { moisture: number; temperature: number }

    Climate used when there is no world.

    Type Declaration

    • moisture: number

      Moisture 0 (arid) … 1 (saturated).

    • temperature: number

      Temperature, °C.

    Fog.

    Fronts and clouds.

    precipitation: RainSettings

    Rain and snow.

    seed: string | number

    Seed: the same seed, world and time always give the same weather.

    Thunderstorms and lightning.

    Accumulation on the ground.

    temperatureOffset: number

    Added to every temperature, °C (drive seasons or a day/night cycle with it).

    Wind.