threejs-worldgen
    Preparing search index...

    Function bakeNightLights

    • Bakes a lights field into an equirectangular texture (u = longitude, 0 at the centre; v = latitude, south at the bottom row). Longitude 0 is on the body frame's +Z, like threejs-biomes planets.

      Parameters

      • field: LightsField
      • width: number = 1024
      • height: number = 512

      Returns DataTexture