Environment · interface

CelestialState

Explained in Sky and atmosphere.

interface CelestialState
import type { CelestialState } from '@driftengine/core';

Properties

NameTypeDescription
sunDirVec3
moonDirVec3
dayFactornumber0 at night, 1 in full day. Smoothstepped across the twilight band.
nightFactornumber
moonPhasenumber0..1 across the lunar cycle.