Skip to content

CloudTextureOptions

Defined in: packages/engine/src/render/clouds.ts:123

Property Type Description
cells number Lattice cells across the texture, and the period the noise wraps on.
clumpCells number Clump cells across the tile. Counted rather than taken as a fraction of the cloud lattice: the clumping has to wrap on a whole number of cells to tile, and a fraction of a lattice a deck is free to choose is not one. Few, so a bank is several clouds across rather than one.
clumping number How far that share swings from one part of the sky to another, as a share of the widest swing the coverage allows rather than of the coverage itself. That widest swing closes toward either end of the range, so a sky asked for no cloud still has none and one asked for all of it is still overcast. Without it the threshold is one number over the whole field, so cloud sits at one density everywhere and every part of the sky holds about as much as every other — which is what reads as uniform, and no amount of detail inside a cloud fixes it. A real sky clumps: banks of it in one quarter, clear air in the next. This is a second sample of the same noise at a frequency far below the clouds’ own, which is the “weather” layer Inigo Quilez builds his clouds over the same way (iquilezles.org/articles/fbm).
coverage number The share of the sky the clouds take, 0 to 1.
softness number How wide a cloud’s edge is, in noise value. Zero is a cut-out.
textureSize number The side of the texture in texels. A power of two, so it carries mipmaps and the layer does not fizz where it is seen at a glance.