Function makeEarthAtmosphere

  • Create a default atmosphere that corresponds to earth's atmosphere.

    Parameters

    • Optional center: [number, number, number]

      The center of the atmosphere. Defaults to upDirection * -{@link Atmosphere.bottomRadius} (upDirection depends on yUp).

    • yUp: boolean = true

      If true, the up direction for the default center will be [0, 1, 0], otherwise [0, 0, 1] will be used.

    Returns Atmosphere

    Atmosphere parameters corresponding to earth's atmosphere.