cachedShadowMapSize? |
number |
4096 |
The side in texels, up to 4096, of the sun’s cached shadow: one depth render, from the sun, of everything that stands still within 1.5 times shadowDistance round the camera, drawn again as the sun turns, the camera travels or what stands still changes. While it holds, the cascades draw only what moves, such as the characters, and the ground. Where shadowMapSize is 0 it is the sun’s shadow near the camera. 0 draws none, and the cascades draw everything. |
canopy? |
CanopyOptions |
none |
A texture laid over the world from above that says how closed the canopy is over each spot, and a share of the sun’s light every lit surface under it takes from every side, as global illumination would scatter it down through the leaves: a grove’s shade then reads lit rather than black. One texture read per lit pixel. Left out, none. |
clock? |
Entity |
undefined |
The day clock the sun follows; with none, the sun stands at the look’s hour. |
farShadowDistance? |
number |
300 |
Metres round the camera the far shadow map covers, along x and along z. Its texel is twice this over farShadowMapSize: 30 cm at the defaults. |
farShadowMapSize? |
number |
2048 |
The side in texels, up to 4096, of the sun’s far shadow map: one cached depth render, from the sun, of everything that stands still, which shades past the cascades’ shadowDistance and is the sun’s only shadow where shadowMapSize and cachedShadowMapSize are 0. It draws again, a share each frame, as the sun turns or the camera travels. 0 draws none. |
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. |
lightMask? |
LightMaskOptions |
none |
A texture laid over the world from above that dims the sun by region, and the sky’s fill and the fog with it, so a region reads unlit: a dark side of the world, with lit circles in it the game draws as it runs. One texture read per lit pixel. Lights other than the sun and the moon, such as a lantern’s, keep their light, and so does a glowing surface. Left out, none. |
look? |
LookPick |
undefined |
A look, as Landscape takes it. |
shadowDistance? |
number |
60 |
Metres along the view the sun’s shadow reaches, from the camera. Its two cascades fit the view out to here, and the last fades to unshadowed sun over the last fifth. Never past the camera’s far. |
shadowMapSize? |
number |
1024 |
The side of each of the sun’s two cascade maps in texels, up to 4096; 0 casts none. The two share one map twice as wide. |
shadowSplit? |
number |
14 |
Metres along the view where the sun’s near, sharper cascade ends and the far one starts, kept under half shadowDistance. Lower it for a view whose near ground is close, such as a first-person one; raise it for a camera far above its ground, such as a strategy view. Unity and Godot give it as a share of the distance. |
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; the scene takes its soft light from the image too, unless the look names an environment.image. false draws none, for a game that draws its own sky or sets scene.background itself, and the scene is lit from the engine’s sky. |
sun? |
boolean |
true |
Whether the sun lights the scene by day, and the moon by night: one sun light, which casts the shadow. false leaves it out, as in a cave; the sky’s fill light stays. |
weather? |
false | Partial<LiveWeather> |
the world's weather |
The scene’s own layer over the world’s weather, which the listed plugin’s weatherRule gives, such as weather()’s: false draws none of it, for an interior or a cave, and a partial record replaces the fields it names, such as { temperatureOffset: 0 } to keep the grade’s warmth in the rain. setLightingWeather lays the page’s own over both. |