Skip to content

Clouds

Class ยท server and client scripts

Clouds controls the world's volumetric cloud layer, drawn over the sky and lit by the sun. Access it through World.Clouds.

Example

-- Server script.
World.Clouds.Coverage = 0.45
World.Clouds.Color = Color.White
World.Clouds.WindSpeed = 20

Coverage

Property
Coverage: number

Coverage is how much of the sky the clouds cover, from 0 (clear) to 1 (an unbroken layer); around 0.3 produces scattered patches.

Default 1

Density

Property
Density: number

Density is how thick the cloud is per unit of distance, from 0 to 1. 0 makes clouds invisible; values from 0.005 to 0.02 produce white clouds and higher values darken toward storm clouds.

Default 0.0098

Color

Property
Color: Color

Color tints the clouds.

Default Color.White

BaseHeight

Property
BaseHeight: number

BaseHeight is the altitude, in units above y = 0, of the bottom of the cloud layer, from 1 to 100000. Higher altitudes also enlarge cloud shapes.

Default 4000

Thickness

Property
Thickness: number

Thickness is how tall the cloud layer is, in units from 1 to 50000. Low values make flat sheets and high values build tall cloud decks.

Default 5000

WindX

Property
WindX: number

WindX is the X component, from -1 to 1, of the cloud drift direction. When WindX and WindZ are both 0, clouds drift along +X.

Default 0

WindZ

Property
WindZ: number

WindZ is the Z component, from -1 to 1, of the cloud drift direction.

Default 1

WindSpeed

Property
WindSpeed: number

WindSpeed is how fast the clouds drift, in units/s from 0 to 1000, along (WindX, WindZ).

Default 30

EvolutionSpeed

Property
EvolutionSpeed: number

EvolutionSpeed is how fast the clouds change shape, from 0 to 100, apart from drifting with the wind. At 0 clouds keep their shape.

Default 4.9

Seed

Property
Seed: number

Seed is a whole number from 0 to 2147483647 that picks the random layout of the clouds.

Default 20

Quality

Property
Quality: number

Quality is how many raymarch steps the renderer takes through clouds per pixel: 0 takes 16 steps, 1 takes 24, and 2 or more takes 32. Graphics quality Levels 3 to 5 always take 16 steps, and Levels 9 and 10 take 64 in place of 32.

Default 2

Anisotropy

Property
Anisotropy: number

Anisotropy controls which direction clouds scatter sunlight. Positive values brighten clouds toward the sun, negative values brighten clouds opposite the sun, and 0 scatters evenly. Values are clamped to [-0.98, 0.98].

Default 0.44

Erosion

Property
Erosion: number

Erosion controls how much cloud edges break into wisps, clamped to [0, 0.99]. At 0 clouds keep smooth shapes.

Default 0.3

MultipleScattering

Property
MultipleScattering: number

MultipleScattering controls how much light bounces inside the clouds, from 0 to 2. Higher values brighten the inside of thick clouds.

Default 2

PowderStrength

Property
PowderStrength: number

PowderStrength controls how much thin edges of thick clouds brighten against the sun, from 0 to 2. 0 turns it off.

Default 2

BottomDarkening

Property
BottomDarkening: number

BottomDarkening controls how much darker cloud undersides are than their tops, from 0 to 1.

Default 0

ShadowStrength

Property
ShadowStrength: number

ShadowStrength controls how dark cloud shadows on the ground are, from 0 to 4. 0 casts no cloud shadows, and 1 casts physical shadows. Cloud shadows draw at graphics quality Level 9 and above.

Default 1