DistanceClouds Shader

Shader Parameters

Distance clouds expose the following shader parameters via the Shader Params section inside the Material editor to adjust their appearance.

Param

Description

AlphaSaturation

Controls the alpha saturation of cloud when blending them with the sky. High values will make less opaque parts of the cloud texture fade out more.
Allows reusing the same texture for slightly different looking clouds by defining several materials with custom AlphaSaturation values.

Attenuation

Controls how strongly sun light is attenuated when traveling through the distance cloud. Light attenuation is computed per pixel.
It is used to blend between current sun color and sky color. Use higher attenuation values to accentuate cloud self shadowing (e.g. strong cloud layers).

SkyColorMultiplier

A value multiplied to the sky color defined for the current by time of day. The result will be used in the pixel shader to blend between sun and sky color using the computed light attenuation value.

StepSize

Controls how fast to step through the cloud texture (density) to compute per pixel light attenuation.
This effectively controls the appearance of the gradient. The higher the value the smoother and less abrupt the gradient will be.
Higher values can easily produce aliasing artifacts as time of day changes (i.e. tangent space direction vector to sun). This will result in sudden, unnaturally looking gradient changes over time.

SunColorMultiplier

A value multiplied to the sun color defined for the current by time of day. The result will be used in the pixel shader to blend between sun and sky color using the computed light attenuation value.

Advanced Distance Clouds

Advanced Distance Clouds allows you to use distance clouds with more accurate shading computations.

Shader Param

Description

Alpha Multiplier

Alpha multiplier for cloud texture.

Alpha Saturation

Alpha saturation of cloud texture.

Cloud Height

Height of the cloud layer.

Density Sky

Cloud density used for sky light scattering.

Density Sun

Cloud density used for sun light scattering.

Simple Distance Clouds

Simple Distance Clouds allows you to use distance clouds with no volumetric shading computations.

Shader Param

Description

Exposure

Exposure amount to enable HDR on LDR cloud texture.

Opacity

Opacity modifier for the cloud.

Examples

Alpha saturation 1.5

Alpha saturation 2

Alpha saturation 4

Attenuation 0.2

Attenuation 0.4

Attenuation 0.6

StepSize 0.005

StepSize 0.0075

StepSize 0.01