跳转到内容

TimeOfDay

此内容尚不支持你的语言。

const TimeOfDay: ComponentDef<TimeOfDayData>

Defined in: ecs/component.ts:1414

The time of day of a scene: where the sun and the moon are, and what the light, the sky and the fog are because of it.

The sun crosses the sky along the path its latitude and the season give it; the scene’s directional light is aimed at it (at the moon by night) and scaled by a day’s curve — warm and weak near the horizon, gone once it is down — and the ambient light follows. A Sky Atmosphere effect draws the sun, a dusk glow, a moon and stars where it stands, and the fog is lit as the day is. It composes with Weather: both scale the same lights from what the author set.