Sky
Our own sky, sun and moons (godot_client/scripts/Sky.gd,
godot_client/materials/sky.gdshader), built on 2026-11-13 in place of the
Sky3D add-on. In the double-precision engine Sky3D's screen-space fog took
the camera to be below the sea wherever only sky lay behind the water, and
covered the open sea whole past the edge of home's tiles. Its look was also
not what the owner wanted. The sky shader works from directions alone, never
world positions, so it is the same in either precision.
What was agreed
- Day: deep clear blue overhead, paling toward the horizon.
- Dawn and dusk: vivid pink and purple, brightest on the sun's side.
- Two moons: a large pale silver one and a smaller amber one, each on its own path and with its own month, lit from the sun so they wax and wane: new beside the sun, full opposite it and up all night.
- Stars: thousands, of varied brightness and colour, with a faint galaxy band and a gentle twinkle; fewer show under bright moons.
- Clouds: drawn in the sky shader, set by the weather (a few on clear days, thick grey in rain and storms), drifting with the wind.
- Night light: moons up light the land silver-blue, enough to walk by; moonless nights are dark.
- Haze: a light blue distance haze (the Environment's own fog, which is worked out per pixel and so never hides the near sea), thicker in fog and rain (Weather.gd).
How it runs
- The day is the server's 32 hours. The sun rises at 6.5 in the east,
is highest at 14.5 in the south and sets at 22.5 in the west; its path
leans 25 degrees south. World.gd hands the server's hour to
set_hour. - The moons take their phases from the server's wall clock as
Weather.wind_clock()keeps it (one game hour is one real hour), so every player sees the same moons. Silver: a 6-day month, path leaning 18 degrees, 3.7 degrees across. Amber: a 10-day month, leaning 38 degrees and turned 20, 2.75 degrees across. A moon trails the sun round the sky by its phase. - The stars turn with the sun about the pole of its path.
- Light: the sun's DirectionalLight3D turns warm pink low down and white overhead; one moonlight follows the brighter moon, its colour a blend of the two by how much each gives.
- Weather.gd sets
cloud_cover,overcast,sun_scale,open_sky(0 under a dungeon's roof),flash(lightning) andwind. - is_night() (sun below the horizon) is what Lantern, NpcTorch and
CreatureCalls ask; CaptureShots holds an hour with
hold_hour.
The colours, sizes and months are uniforms and constants at the top of the two files.