Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

LookSky

The engine’s own sky as a look paints it: a gradient from overhead to the horizon with a sunset glow toward the sun, as Godot’s ProceduralSkyMaterial and Unity HDRP’s Gradient Sky paint one. The engine’s scattering sky is white near the horizon whatever its settings, and it is not drawn under a painted one.

Every colour is an input at the look’s hour, in the same light as the fog’s colour: the look’s exposure and tone mapping fall on it, so a colour shows brighter than its swatch. It dims with the light on the ground as the fog does, so the night darkens it. The lowest 3° take the look’s fog colour, so the far ground meets the sky without a seam, and the sky runs 10° under the horizon in it. A fog the Landscape names in place of the look’s keeps its colour at every hour, so the sky meets it at its horizon colour instead.

Property Type Description
bottomColor? undefined A pixel sky’s alone.
cellsPerRadian? undefined A pixel sky’s alone.
cloudBanks? false | LookCloudBanks Faceted cloud banks standing in the world over the map, as stylised island games draw cloud: chunky shapes a low camera sees, which drift with the look’s wind and shift as the camera climbs, zooms and walks. None when left out or false.
clouds? false | LookClouds The engine’s flat cloud decks overhead, or none for false. Left out, the engine’s. Seen within a few degrees of the horizon a deck streaks, where cloudBanks read as cloud.
coverage? undefined A pixel sky’s alone.
curve? number How low the top colour reaches, a finite number more than 0, as Godot’s sky_curve: the horizon’s colour gives way to it by one less (1 - c) ^ (1 / curve), with c the share of the angle up from the horizon. 1 is an even blend; at 0.15, when left out, the two meet halfway 9° up, and at 0.04 2.5° up.
horizonColor ColorRepresentation The colour at the horizon with the sun high, under the sunset’s glow. Godot’s sky_horizon_color.
moonAngleRadians? undefined A pixel sky’s alone.
seaOfClouds? undefined A pixel sky’s alone.
span? number How far up the sunset glow reaches, as a share of the way from the horizon to the zenith, more than 0 to 1. 0.25 when left out.
stars? undefined A pixel sky’s alone.
style? "painted" | Painted SkyStyle.Painted when left out.
sunAngleRadians? undefined A pixel sky’s alone.
sunsetColor? ColorRepresentation The glow over the horizon as the sun falls, at dawn and at dusk alike, strongest on the sun’s side: none with the sun at its peak, most of it through the late afternoon, and all of it with the sun on the horizon. horizonColor is then the noon horizon. Left out, the look’s horizonSunColor, or horizonColor without one.
topColor ColorRepresentation The colour straight up: Godot’s sky_top_color, HDRP’s Top.