Skip to main content

Module skyline

Module skyline 

Source
Expand description

An anti-aliased horizon silhouette (a far ridge and an optional conifer forest) shared by the Earth & Sky scenes. Heights are in degrees above the horizon, so the land keeps its shape at every size; each pixel column is sub-sampled, so a spruce flank is a soft slope of partly covered pixels rather than a staircase.

Structs§

Skyline
An anti-aliased silhouette: silhouette height above the horizon in pixels, at SKY_SUB samples per pixel column. Seeded and laid out in resize.
Terrain
What stands on the horizon: a far ridge and, optionally, a conifer forest. Heights are in degrees above the horizon, so the land keeps its shape at every size.

Constants§

SKY_SUB
Height samples per pixel column: the silhouette is anti-aliased across as well as down, so a spruce flank is a soft slope of partly covered pixels, not a staircase.