Skip to content

five-on-it / apps/client/src/renderer/daylight

apps/client/src/renderer/daylight ​

The light of the room's hour and weather (GAME_DESIGN §5.7), as the scene is lit: the sun climbing from the east in the morning and setting in the west, warm at dawn and dusk; the sky light dimming into a blue night, never below the player's nightBrightness (Settings → Display) times the day's, so the night stays readable; an overcast sky, rain and fog dimming and greying it; and the fog itself, thicker with the fog and a little with the rain. At noon under a clear sky it is the light the scene always had (scene.ts), so a picture of the day is the same picture. A pure function of the clock's minutes and the weather (skyLight); weather-view.ts applies it.

Interfaces ​

Variables ​

Functions ​