Clouds & Sky
intermediate conceptsWorld Map Globe Ultra Edition · Core Concepts
The globe draws the sky of the real date: the Sun, the Moon, the stars, the planets and the constellations at their places, an atmosphere around the planet, and clouds over the whole planet. The options are in the Universe Settings, Earth & Atmosphere Settings and Clouds Settings sections of the globe. See Globe Settings for the full list.
The Sun
The Sun is a Directional Light of the scene. Assign it to Sun Light, or leave the field empty to use the Sun of the Lighting window or else the brightest directional light. The color and the intensity of the light are the color and the intensity of the sunlight.
With Sync Time of Day on, the globe turns the light to the real place of the Sun for the date and the hour of the sky. Turn it off to set the direction of the Sun with the rotation of the light. The Sun has its real size in the sky for the date. Sun Glare adds a glow around it.
Date and Time
- Set Year, Month, Day and Hour (UTC), or turn on Use Device Clock to use the date and the time of the device.
- Hours Per Second makes the time of the sky pass in Play mode. For example, 1 shows a full day in 24 seconds.
- The read only property
SkyTimeof the globe gives the date and the time of the sky in UTC. In Play mode, the inspector also shows it.
globe.sky.useDeviceClock = false;
globe.sky.year = 2026; globe.sky.month = 8; globe.sky.day = 12;
globe.sky.hour = 18.5f;
globe.sky.hoursPerSecond = 0.1f;
Stars, Moon and Planets
- The sky has the 33,111 stars of a star catalogue. Faintest Magnitude leaves out the stars fainter than its value: the eye sees stars up to magnitude 6.5.
- The Moon shows its real surface and its phase for the date. The map covers the whole Moon, so a camera that flies around it sees its far side. The camera cannot enter the Moon.
- Show Planets draws Mercury, Venus, Mars, Jupiter and Saturn as points of light.
- The stars, the planets and the Moon have their real brightness against the Sun, so they are not visible by day and they appear after sunset. Star Brightness and Brightness of the Moon are factors: 1 is the real brightness. The light of the Moon also reaches the camera, so fewer stars are visible while the Moon is in the sky.
- At night the exposure rises as the eye does in the dark, but the Moon keeps the exposure of sunlight, so its surface keeps its details and it does not look too bright.
- The Moon looks small on a screen with a wide field of view, so its Size is 5 by default. With a Size of 1 it has its real size in the sky. A larger Moon also casts a larger shadow in an eclipse.
Eclipses of the Sun
On the date and at the place of a real eclipse, the shadow of the Moon darkens the terrain and the sky, the Moon covers the Sun, and the corona of the Sun shows in totality. To see one, set the Size of the Moon to 1, turn off Use Device Clock, set the date to 12 August 2026 and the hour to 18:29 UTC (Hour (UTC) 18.48), and fly to latitude 42.34, longitude -3.70, in the north of Spain. With a larger Size, the Moon covers the Sun for longer and its shadow is larger than the real one.
Constellations
With Show Constellations on, in the Universe Settings, the sky shows the lines of the 88 constellations between their stars. The lines follow the stars for the date and the hour of the sky, and the planet and the Moon cover them. The lines are easier to see over a dark sky, after sunset. The constellations have their Latin names, for example Orion or Ursa Major, and a code of three letters, for example Ori or UMa.
A highlighted constellation takes the Highlight Color on its lines and its name, and a dot marks each star of its figure. The other constellations keep their color. With a Planetary Interaction component in the scene, the constellation under the pointer is highlighted, and a star of its figure under the pointer takes a larger dot in the Highlight Color. See Pointer Events.
| Setting | What it changes |
|---|---|
| Line Color, Line Width | Color and width of the lines. The alpha of the color sets their strength as the eye sees it, so 0.5 looks half as bright as 1. The width follows the height of the screen, so the lines look the same at any resolution. |
| Highlight Color | Lines and name of the highlighted constellation, and the star under the pointer. |
| Names | Under Pointer shows the name of the highlighted constellation, All shows the names of all the constellations, and None shows no names. |
| Name Color | Names of the constellations and of the stars, and the dots on the stars of the highlighted constellation. |
| Star Names | Shows the names of the stars of the highlighted constellation, and places the name of the constellation beside its figure. When two stars with a name are very near, only the brighter one shows its name, unless the pointer is over the other one. |
| Zodiac Only | Draws only the twelve constellations of the zodiac. The other constellations are not drawn and cannot be highlighted. |
Scripting
| Member | Description |
|---|---|
int constellationCount | Number of constellations, or 0 while the sky is not ready. |
int GetConstellationIndex(string nameOrCode) | Constellation by its name or by its code of three letters, in any letter case, or -1. |
string GetConstellationName(int constellationIndex), GetConstellationCode(int constellationIndex) | Name and code of a constellation, or null. |
bool GetConstellationIndex(Ray ray, out int constellationIndex) | Constellation whose lines pass near a ray of the camera of the globe. False when the ray meets the planet or when no line is near. |
bool GetConstellationIndex(Ray ray, out int constellationIndex, out int starIndex, float maxPixels) | The same, with the star with a name near the ray, or -1, and the largest distance in pixels from the ray to a line or to a star. |
Vector3 GetConstellationDirection(int constellationIndex) | Direction in the scene of the middle of a constellation for the date of the sky. |
void LookAtConstellation(int constellationIndex), LookAtConstellation(string nameOrCode) | Turns the camera of the globe at once to a constellation. The camera keeps its place, so a constellation below the horizon stays behind the planet. |
void HighlightConstellation(int constellationIndex, int starIndex = -1) | Highlights a constellation, and one of its stars when you give it. Planetary Interaction calls it for the constellation under the pointer, so with that component the highlight changes when the pointer enters or leaves a constellation. |
void ClearConstellationHighlight() | Ends the highlight. |
int constellationHighlighted, starHighlighted | Highlighted constellation and star, or -1. |
string GetStarName(int starIndex) | Name of a star, or null when it has no name. |
These members need Show Sky. While it is off, the searches find nothing and the other methods do nothing. The lines and the highlight are drawn only while Show Constellations is on, but the searches and LookAtConstellation also work while it is off.
globe.sky.showConstellations = true;
globe.LookAtConstellation("Orion");
globe.HighlightConstellation(globe.GetConstellationIndex("Ori"));
Atmosphere
The atmosphere gives the blue sky seen from the ground, the red light of sunrise and sunset, the haze over the far terrain and the thin glow of the air seen from space. The camera crosses it from the ground to orbit with no change of scene.
- Air Density, Haze Density and Ozone Density change the color of the sky and the amount of haze. With 1 they have the values of the Earth. A Haze Density of 10 gives a hazy day, and 50 a mist that shows the shadows and the light shafts of the Sun.
- Exposure is the exposure in full sunlight. It rises when less light reaches the camera, as the eye does.
- Night Light is the light that the ground receives at night. With 0 the night side is black.
- Quality (Samples) gives a more exact sky with a low Sun and at the edge of the planet seen from orbit. Higher values cost more.
When Show Atmosphere is off, there is no sky, no clouds, no lens flare and no Sun shadows, and Terrain Shading can shade the terrain with the direction of the Sun.
Sun Shadows
With Sun Shadows on in the Earth & Atmosphere Settings, the buildings, the trees and the terrain near the camera cast shadows of the Sun, and the far mountains shade the valleys and the air. The trees take part with their own Sun Shadows option in the Trees Settings, and the clouds with Shadows In The Air. The shadows in the air are drawn near the camera. The globe draws these shadows itself, so the Sun light does not need shadows of its own.
Lens Flare
Lens Flare draws reflections of the Sun inside the lens of the camera: a streak, rays, a ring of colors and a row of ghosts through the middle of the screen. They fade when the terrain, the clouds, the horizon or the Moon cover the Sun. Each part has its own strength, from 0 to 2. Outer Space Intensity multiplies them when the camera is in outer space. With a Lens Flare of 0 nothing is drawn.
Clouds
With Show Clouds on, the clouds cover the whole planet and are seen from the ground to space: regions of clear sky, of fair weather heaps and of deep overcast fronts, with a high veil of ice. Their weather depends on the region and on the latitude. The camera can cross them. They move with the wind and change in time: storms are born, turn and fade, and fronts move with the winds. They take the light of the Sun at every hour, they shade the terrain, the buildings and the trees, and under an overcast sky the ground takes a soft light.
The clouds are fully procedural: they need no cloud texture and no download.
| Setting | What it changes |
|---|---|
| Low Clouds Cover, High Clouds Cover | How much of the sky the clouds cover. With 0.5 the weather of each region decides it. 0 removes those clouds. |
| Low Clouds Density | How much light and how much of the ground the thin parts of the low clouds let through. |
| Weather Speed | 1 moves the weather in real time. Larger values show the weather of several days in a few seconds, for views from orbit. 0 stops the clouds. |
| Seed | Another value gives another distribution of the clouds and of the storms. |
| Shadows In The Air | The air under a cloud cover is darker, and beams of light show between the clouds with a low Sun. It needs Sun Shadows of the atmosphere. |
| Quality | Size of the picture of the clouds. Lower values draw them faster and softer. Lower it first if the clouds cost too much on your device. |
The time of the sky does not move the clouds: they follow the time of the application and Weather Speed. The clouds need Show Atmosphere, compute shaders and the Render Graph. See Requirements.
Suggest an improvement
Help us improve this documentation page.