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

LiveDaylight

The light a scene’s look gives this frame, one record whatever the look, keyframed or the engine’s arc: what the rig drew, which the sky, the grade, the lamps and a game’s own effects read rather than working the hour out again. The rig writes it before every other frame callback of the default priority. Read it, never write it.

Property Modifier Type Description
cloudCoverage public number How much of a pixel sky lies under cloud, 0 to 1: the keyframes’, or on the engine’s arc the pixel sky’s coverage; 0 under any other sky.
exposure public number The renderer’s tone-mapping exposure.
fillGroundColor readonly Color The fill’s colour from below, linear.
fillIntensity public number The fill’s intensity, the look’s fill in it.
fillSkyColor readonly Color The hemisphere fill’s colour from above, linear.
fogColor readonly Color The look’s fog colour, linear.
fogDensity public number The exponential fog’s density this frame, its zoom’s share in it; 0 for a linear fog or none.
hour public number The hour the rig drew.
lightDirection readonly Vector3 Which way the key light shines from, after the moon’s blend and the look’s clamp: what the shadows fall from.
moonDirection readonly Vector3 Which way the moon stands, opposite the sun.
moonShare public number Where the key light shines from, 0 the sun to 1 the moon.
nightShare public number How far into the night the hour is, 0 to 1.
overcastShare public number How overcast the weather holds the sky, 0 to 1, which raises a lamp’s day share toward 0.45; 0 with no weather.
shadowIntensity public number How dark the key light’s shadow falls, 0 to 1.
shadowRadius public number The key light’s shadow filter, in texels.
skyBottomColor readonly Color The sky under the horizon, linear, under keyframes; on the engine’s arc a pixel sky’s bottomColor, else the fill’s ground colour.
skyHorizonColor readonly Color The sky at the horizon, linear, under keyframes; on the engine’s arc a pixel sky’s horizonColor, else the fog’s colour.
skyTopColor readonly Color The sky straight up, linear, under keyframes; on the engine’s arc a pixel sky’s topColor, else the fill’s sky colour.
sunColor readonly Color The key light’s colour, linear.
sunDirection readonly Vector3 Which way the sun stands, as the arc puts it.
sunGlow public number How strongly the sky glows round the sun.
sunIntensity public number The key light’s intensity, the look’s sun in it.