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.

    • useHenyeyGreenstein: boolean = true

      If this is true, Mie.phaseParam will be set to a value suitable for the Cornette-Shanks approximation (0.8), otherwise it is set to 3.4 for use with the Henyey-Greenstein + Draine approximation.

    Returns Atmosphere

    Atmosphere parameters corresponding to earth's atmosphere.