Skip to content

API Interface SkySun

github-actions[bot] edited this page Nov 29, 2026 · 4 revisions

Interface: SkySun

Defined in: src/engine/sky/skyFormat.ts:23

Properties

azimuth

azimuth: number;

Defined in: src/engine/sky/skyFormat.ts:37

manual placement: degrees clockwise from north, seen from above.


dayOfYear

dayOfYear: number;

Defined in: src/engine/sky/skyFormat.ts:31

Day of the year, 1–365 (172 ≈ the June solstice). Sets the sun's height through the year and the moon's phase.


elevation

elevation: number;

Defined in: src/engine/sky/skyFormat.ts:35

manual placement: degrees above the horizon, -90–90.


latitude

latitude: number;

Defined in: src/engine/sky/skyFormat.ts:29

Degrees north (positive) or south of the equator, -90–90.


northOffset

northOffset: number;

Defined in: src/engine/sky/skyFormat.ts:33

Rotates the compass: degrees from the World's +Z axis to north, clockwise seen from above.


placement

placement: SunPlacement;

Defined in: src/engine/sky/skyFormat.ts:25

timeOfDay places the sun from the clock, latitude and date; manual from elevation and azimuth.


timeOfDay

timeOfDay: number;

Defined in: src/engine/sky/skyFormat.ts:27

Local solar time in hours, 0–24 (12 = noon).

Clone this wiki locally