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

GroundFogOptions

Fog lying on the ground up to a top that follows the ground.

Property Type Default value Description
albedo? ColorRepresentation #000000 The share of the mask’s fill light it scatters, per channel, as Godot’s and Unity’s fog albedo: the lamp’s pool lights the fog’s face along the pool’s line, fading over its first metre or two. Black takes none.
color? ColorRepresentation the curtain’s blue black, #0d1220 Its own colour where it hides all, drawn unlit, as the curtain’s is: a colour as three reads it, drawn before the grade.
density? number 0.3 How much of the light a metre of it takes, as an extinction: exp(-density * metres) gets through, so 0.3 hides about four fifths of what stands 5 m inside it. 0 or more.
height? number 1.2 Metres above the ground its top stands. Above 0.
noise? GroundFogNoiseOptions undefined Slow swells in its top. Left out, a flat top.
topBlendWidth? number a tenth of height Metres over which its top thins from full to none, centred on the top. 0 or more, under height.
topColor? ColorRepresentation undefined Its colour at its top, painted and drawn unlit as color is, turning to color over topColorDepth metres down, such as moonlight on the top of a smoke or a pale skin on a fog of war. A view across the top crosses more of it than a view down into it, so the body brightens with distance as a lit top does. It takes no light of the scene’s, so a sky that changes its hour wants a colour for each hour. Left out, one colour all through.
topColorDepth? number a third of height Metres under the top over which topColor turns to color, at a steady rate. Above 0; past height, the ground never reaches color, which a fog rising from nothing passes through.