threejs-worldgen
    Preparing search index...

    Function renderWorldMap

    • Renders a top-down map of the world into RGBA bytes (row 0 = −Z edge). Pure (no DOM), so it also runs in workers and tests; draw it with new ImageData(pixels, resolution) or into a DataTexture.

      Parameters

      • world: World
      • input: Partial<MapOptions> = {}
      • frame: LocalFrame = world.frame

        Local frame the map is centred in (default: the world's own frame; on planets use world.frameAt(lat, lon) to map anywhere).

      Returns Uint8ClampedArray<ArrayBuffer>