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

useLookWeather

useLookWeather(): object

The weather this scene’s look draws this frame, resolved from the world’s weather rule, the scene’s weather and the page’s own: read it in a useFrame of the default priority, such as to draw a game’s own rain from rainShare. Read it, never write it: setLightingWeather lays a page’s weather over the rest.

Name Type Description
custom object A game’s own factors, such as a sandstorm’s sand, by name: what the game’s own effects read. A layer’s custom replaces only the names it holds.
dust number × the floating dust’s count by day: an Emitter whose rate names weather: "dust" follows it. 1.
exposure number × the tone-mapping exposure. 1.
fill number × the hemisphere fill’s intensity. 1.
fireflies number × the fireflies’ count by night: an Emitter whose rate names weather: "fireflies" follows it. 1.
fog number × the exponential fog’s density; a linear fog’s distances divide by it. 1.
godRays number × every god-ray shaft’s gain. 1.
ground object A game’s own ground states’ levels, 0 to 1, such as an ash cover, by name, beside the built-in wetness and snowCover. A layer’s ground replaces only the names it holds.
leaves number × the falling leaves’ count: an Emitter whose rate names weather: "leaves" follows it. 1.
overcastShare number How overcast the sky stands, 0 to 1: it greys the fog’s, the sky’s horizon, the sun’s and the fill’s colours toward their own luminance in a cool grey, by 1, 1, 0.85 and 0.6 of it, lifts a lamp’s day level toward 0.45 and an emissive’s day toward 0.4 of its night. 0.
rainShare number The share of the rain’s drops that fall, 0 to 1. 0.
saturationOffset number Added to the grade’s saturation multiplier, as its night saturation moves it, never to the signed LiveGrading.saturation: Luminati’s -0.24 takes its 1.3 to 1.06. 0.
snowCover number How much snow lies, 0 to 1: up-facing lit surfaces and the tops of leaf cards and ground cover whiten toward the look’s snow colour. 0.
snowShare number The share of the snow’s flakes that fall, 0 to 1. 0.
sun number × the key light’s intensity. 1.
temperatureOffset number Added to the grade’s white balance temperature, in its units; under a grade before the tone mapping, it tints the frame the same way. 0.
wetness number How wet the ground stands, 0 to 1: up-facing lit surfaces darken to 0.8 and take a sheen of the sky. 0.
wind number × the look’s wind speed. 1.