Renderer · interface

SkyColors

Explained in Hello world.

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

Properties

NameTypeDescription
topVec3
horizonVec3
deepVec3
sunDirVec3
sunColorVec3
sunAngularRadiusnumberApparent angular radius in radians; independent from emitted light.
moonDirVec3
moonColorVec3
moonAngularRadiusnumberApparent angular radius in radians; independent from emitted light.
moonPhasenumber0..1 across the lunar cycle.
nightFactornumber
cloudOffsetXnumberAccumulated cloud drift, metres of texture travel on each axis.
cloudOffsetZnumber