This page includes reference information for the Volumetric Cloud, Material expressions, and Light component properties.
Volumetric Cloud Component
The following properties can be found on the Volumetric Cloud component through the Details panel when it is placed in a level. The properties found in this component enable you to define the physical attributes of the cloud placed in your Level, such as its distance from the surface of the planet, how tall the cloud volume is, the quality of the ray-marched clouds, and more.
| Property | Description |
|---|---|
| Layer | |
Layer Bottom Altitude | The altitude at which the cloud layer should start, measured in kilometers (km) above the ground. |
Layer Height | The height of the cloud layer, measured in kilometers (km) above the Layer Bottom Altitude. |
Tracing Start Max Distance | The maximum distance of the volumetric surface before which we will accept to start tracing, measured in kilometers (km). |
Tracing Start Distance From Camera | The distance from the camera at which tracing starts, measured in kilometers (km). This is useful when the camera is inside the cloud layer. |
Tracing Max Distance Mode | Select the mode to control how the tracing max distance should be interpreted. Options are:
Distance from Point of View is useful to avoid clipping the top of the cloud layer when you shorten Tracing Max Distance for performance. |
Tracing Max Distance | The maximum distance that will be traced inside the cloud layer, measured in kilometers (km). |
| Planet | |
Planet Radius | The planet radius used when there is not a Sky Atmosphere component present in the scene. |
Ground Albedo | The ground albedo color used to light the cloud from below with respect to the sun light and the Sky Atmosphere. This is only used by the cloud material when the Volumetric Advanced Material Output node has Ground Contribution enabled in its Details panel. (See the Material Expressions section of this page.) |
| Cloud Material | |
Material | The material assigned that describes the cloud volume. It must be a material that uses the Volume Material Domain. By default, this is the engine's |
| Cloud Tracing | |
Use Per Sample Atmospheric Light Transmittance | Whether to apply atmosphere transmittance per sample instead of using the light global transmittance. |
Sky Light Cloud Bottom Occlusion | Occlusion amount applied to the Sky Light contribution at the bottom of the cloud layer. This is a fast approximation to sky lighting being occluded by clouds without having to trace rays or sample an ambient occlusion (AO) texture. It's ignored if the cloud material sets the ambient occlusion value itself. |
View Sample Count Scale | The scale of the view tracing sample count. The quality level scalability console variables affect the maximum range. The sample count resolution is clamped according to the scalability setting of |
Reflection View Sample Count Scale Value | The scale of the reflection tracing sample count. The quality level scalability console variables affect the maximum range. The sample count resolution is clamped according to the scalability setting of |
Shadow View Sample Count Scale | The scale of the shadow view tracing sample count. Only used when the cloud material uses ray marched volume shadows. The quality level scalability console variables affect the maximum range. The sample count resolution is clamped according to the scalability setting of |
Shadow Reflection View Sample Count Scale Value | The scale of the shadow reflection view tracing sample count. The quality level scalability console variables affect the maximum range. The sample count resolution is clamped according to the scalability setting of |
Shadow Tracing Distance | The shadow tracing distance measured in kilometers (km). Only used when the cloud material uses ray marched volume shadows. |
Stop Tracing Transmittance Threshold | When the mean transmittance is below this threshold, we stop tracing. This is a good way to reduce the ray marched sample count, and thus increase performance. |
| Art Direction | |
Aerial Perspective Rayleigh Scattering Start Distance | The distance from the camera, in kilometers (km), at which the Sky Atmosphere's aerial perspective starts to apply Rayleigh scattering to clouds. |
Aerial Perspective Rayleigh Scattering Fade Distance | The distance, in kilometers (km), over which Rayleigh scattering ramps up linearly to full effect on clouds. |
Aerial Perspective Mie Scattering Start Distance | The distance from the camera, in kilometers (km), at which the Sky Atmosphere's aerial perspective starts to apply Mie scattering to clouds. |
Aerial Perspective Mie Scattering Fade Distance | The distance, in kilometers (km), over which Mie scattering ramps up linearly to full effect on clouds. |
| Rendering | |
Holdout | When enabled, clouds render black with an alpha of 0, but their secondary effects, such as shadows, remain. This is used for compositing. It requires the Alpha Output project setting, and also Support Primitive Alpha Holdout when using the deferred renderer. |
Render in Main Pass | Whether the clouds render in the main pass. |
Visible in Real Time Sky Captures | Whether the clouds are visible in real-time Sky Light reflection captures. |
Material Expressions
The following Material Expressions can be added to your Material Graph to define attributes of your volumetric clouds.
Volumetric Advanced Material Output Expression
The Volumetric Advanced Material Output expression provides control over a set of cloud parameters that affect the volume material applied to the Volumetric Cloud component when added to a material graph. It also provides additional cloud properties from the Material Editor Details panel when selected (see below).
| Property | Description |
|---|---|
| Phase | |
Phase G | The parameter G input to the phase function describes how much forward (g < 0) or backward (g > 0) light scatters around. A valid range would be between -1.0 and 1.0. When nothing is connected, it uses Const Phase G from the Details panel, which defaults to 0. It is evaluated per sample if Per Sample Phase Evaluation is enabled. |
Phase G2 | The parameter G2 input to the second phase function describes how much forward (g < 0) or backward (g > 0) light scatters around. A valid range would be between -1.0 and 1.0. When nothing is connected, it uses Const Phase G2 from the Details panel, which defaults to 0. It is evaluated per sample if Per Sample Phase Evaluation is enabled. |
Phase Blend | The linear interpolation (lerp) factor is used when blending the two phase functions parameterized by G and G2. A valid range is between 0.0 and 1.0. When nothing is connected, it uses Const Phase Blend from the Details panel, which defaults to 0. It is evaluated per sample if Per Sample Phase Evaluation is enabled. |
Multi Scattering Contribution | Represents how much contribution each successive octave will add to the multiple-scattering. It is evaluated per pixel, and a valid range is between 0.0 and 1.0 from low to high contribution. When nothing is connected, it uses Const Multi Scattering Contribution from the Details panel, which defaults to 0.5. |
Multi Scattering Occlusion | Represents how much occlusion will be reduced for each successive octave. It is evaluated per pixel, and a valid range is between 0.0 and 1.0 from low to high occlusion. When nothing is connected, it uses Const Multi Scattering Occlusion from the Details panel, which defaults to 0.5. |
Multi Scattering Eccentricity | Represents how much the phase will become isotropic for each successive octave. It is evaluated per pixel, and a valid range is between 0.0 and 1.0 from anisotropic to isotropic. When nothing is connected, it uses Const Multi Scattering Eccentricity from the Details panel, which defaults to 0.5. |
Conservative Density | Represents a four component float vector (Vector4). The X component must represent the participating medium conservative density. If the value is greater than 0, the material will be evaluated and will evaluate the next sample directly. This optimization is used to accelerate ray marching by skipping expensive material evaluation early on. The Y, Z, and W components are used to pass extra data with the conservative density to the material evaluation step, which avoids computing it again. For example, a simple top down 2D density texture would be enough to help by not evaluating the material in empty regions. The Y, Z, and W components can contain parameters that can be recovered during the material evaluation using the Volumetric Advanced Material Input node. This attribute is evaluated per sample. |
When selected, the Material Editor Details provides additional properties that can be set for any cloud material using this material. It enables you to directly set Phase and Multi-Scattering values that aren't parameterized. You can control the number of octave approximations used to simulate the multiple scattering effect of light, apply the contribution of ground lighting to the bottom of the cloud layer, and more.
| Property | Description |
|---|---|
| Phase | |
Const Phase G | The value used for Phase G when nothing is connected to that input. |
Const Phase G2 | The value used for Phase G2 when nothing is connected to that input. |
Const Phase Blend | The value used for Phase Blend when nothing is connected to that input. |
Per Sample Phase Evaluation | Enable this option to force the phase function to be evaluated per sample, instead of once per pixel (globally). Per sample evaluation is slower. |
| Multi-Scattering | |
Multi Scattering Approximation Octave Count | How many octaves to use for the multiple-scattering approximation. This increases the cost of the shader, so it's best to use a single octave. 0 means single scattering only, and the maximum is 2. |
Const Multi Scattering Contribution | The value used for Multi Scattering Contribution when nothing is connected to that input. |
Const Multi Scattering Occlusion | The value used for Multi Scattering Occlusion when nothing is connected to that input. |
Const Multi Scattering Eccentricity | The value used for Multi Scattering Eccentricity when nothing is connected to that input. |
| Options | |
Ground Contribution | Sample the shadowed lighting contribution from the ground onto the medium (single scattering). This adds some costs to the tracing when enabled. |
Gray Scale Material | Sets this material to only be considered for gray scale, only using the R channel of the input parameters internally. The lighting will still be colored. This is an optimization. |
Ray March Volume Shadow | Disable this to use the cloud shadow map instead of secondary ray marching. This is usually enough for clouds views from the ground and it should result in a performance boost. Shadows now have infinite length but also become less accurate and gray scale. |
Clamp Multi Scattering Contribution | Sets whether multiple scattering contribution entry is clamped in [0,1] or not. When disabled, the artist is in charge of ensuring the visual remains in a reasonable brightness range. |
Atmosphere Lights and Sky Light
Atmospheric lights contribute to rendering of the volumetric clouds in your scene with properties that define their lighting in static and dynamic time-of-day scenes.
Directional Light
The Volumetric Cloud component supports lighting from up to two Directional Light sources, such as a moon and sun, or two suns. The Directional Light provides lighting and shadowing for clouds and opaque objects onto clouds. It also enables you to specify the strength, extent, and resolution of the shadows of clouds in your scene.
| Property | Description |
|---|---|
| Atmosphere and Cloud | |
Atmosphere Sun Light | Whether the Directional Light can interact with the atmosphere, clouds and generate a visual sun disk, all of which compose the visual sky. |
Atmosphere Sun Light Index | Which of the two supported atmosphere lights this is: 0 or 1. For example, use 0 for the sun and 1 for the moon. This is in the advanced section. |
Cast Shadows on Clouds | Whether the light should cast any shadows from opaque meshes onto clouds. This is disabled for any secondary Directional Lights that have Atmosphere Sun Light enabled and set to Atmosphere Sun Light Index of 1, such as another sun or as a moon light. |
Cast Shadows on Atmosphere | Whether the light should cast any shadows from opaque meshes into the atmosphere when a SkyAtmosphere is used. |
Cast Cloud Shadows | Whether the light should cast any shadows from the clouds onto the atmosphere and other scene elements. |
Cloud Scattered Luminance Scale | Scales the light contribution when scattered in cloud participating media. This can help counter balance the fact that our current multiple scattering solution is only an approximation. Setting this to 0 on the secondary atmosphere light makes cloud tracing use only a single light, which is cheaper. |
| Advanced Properties | |
Per Pixel Atmosphere Transmittance | Whether to apply atmosphere transmittance per pixel on opaque meshes instead of using the light's global transmittance. |
Atmosphere Sun Disk Color Scale | A color multiplied with the sun disk luminance. |
Cloud Shadow Strength | The strength of the shadow. Higher values will block more light. |
Cloud Shadow on Atmosphere Strength | The strength of shadows on the atmosphere. When set to 0, shadows on the atmosphere is disabled. |
Cloud Shadow on Surface Strength | The strength of shadows on opaque and transparent meshes. When set to 0, shadows on opaque and translucent surfaces is disabled. |
Cloud Shadow Depth Bias | Controls the bias applied to the front shadow depth of the volumetric cloud shadow map. |
Cloud Shadow Extent | The world space radius of the cloud shadow map around the camera. Measured in kilometers (km). |
Cloud Shadow Map Resolution Scale | Scales the cloud shadow map resolution, from a base resolution of 512. The resolution is clamped by |
Cloud Shadow Ray Sample Count Scale | Scales the number of samples used for shadow map tracing. The sample count resolution is clamped with |
Sky Light
The Sky Light component provides soft ambient shadowing support that can be enabled and controlled with the following properties.
| Property | Description |
|---|---|
| Atmosphere and Cloud | |
Cloud Ambient Occlusion | Whether the cloud should occlude sky contribution within the atmosphere (progressively fading out multiple scattering) or not. |
Cloud Ambient Occlusion Strength | The strength of the ambient occlusion. Higher values will block more light. |
Cloud Ambient Occlusion Extent | The world space radius of the cloud ambient occlusion map around the camera in kilometers (km). |
Cloud Ambient Occlusion Map Resolution Scale | Scales the cloud ambient occlusion map resolution. The resolution is clamped by |
Cloud Ambient Occlusion Aperture Scale | Controls the cone aperture angle over which the sky occlusion due to volumetric clouds is evaluated. A value of 1 takes the entire hemisphere into account, resulting in blurry occlusion. A value of 0 takes a single direction of occlusion (vertical) into account, resulting in sharp occlusion. |