LightingProps
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
clock? |
Entity |
undefined |
The day clock the sun follows; with none, the sun stands at the look’s hour. |
focus? |
Vector3 |
undefined |
Where the sun’s shadow box stands. The player’s character when left out. |
fog? |
false | Fog | FogExp2 |
the look's fog |
The scene’s fog, in place of the look’s: a three.js Fog, linear between two distances, or FogExp2, which thickens with distance, as under water. Made once, outside the component. The rig dims only the look’s own fog with the hour. false sets none. Left out, the look’s fog, or none without a look. |
look? |
LookPick |
undefined |
A look, as World takes it. |
shadowBox? |
Partial<ShadowBox> |
{ halfWidth: 14, depth: 40 } |
The shadow box’s half width and depth in metres. |
shadowMapSize? |
number |
1024 |
The side of the sun’s shadow map in texels; 0 casts none. |
sky? |
false | LookBackground |
the engine's scattering sky |
The sky behind the scene. Left out, the engine’s own: a scattering sky with clouds that follows the hour. An equirectangular image in its place, { file, sunU }, with sunU the column its sun stands in, 0 to 1 across, which the rig turns onto its sun. false draws none, for a game that draws its own sky or sets scene.background itself. |
sun? |
boolean |
true |
Whether the sun lights the scene by day, and the moon by night: one directional light, which casts the shadow. false leaves it out, as in a cave; the sky’s fill light stays. |