IN THIS ARTICLE
Deferred Fog Component
The Deferred Fog component creates a screen space fog effect that can be used as scene fog or layered/ground fog. You can add optional cloud turbulence to the fog using a noise texture.
Cloud turbulence is implemented by ray marching along the fog layer and combining two moving noise octaves, creating a “cloudy” fog look. You can configure each octave by scaling the UV coordinates of the noise texture and defining the velocity of the texture’s movement. You can also specify the amount of blend between the two octaves.
Note:At this time, Deferred Fog does not interact with lighting.
|Fog Color||The color of the fog that gradually blends with the scene. The color becomes more opaque as the fog blends towards the Fog End Distance.||Color||R: |
|Fog Start Distance||The distance from the viewer, measured in meters, at which the fog starts. At this distance, the fog begins to gradually blend with the scene until it completely masks the background scene at the Fog End Distance.||Float: 0.0 - 5000.0|
|Fog End Distance||The distance from the viewer, measured in meters, at which the fog completely masks out the background scene. From the Fog Start Distance to the Fog End Distance, the fog blends with the scene, creating a gradual transition between the scene and the masked layer of fog. At and beyond this distance, the scene appears a solid color, completely masked by the fog layer.||Float: 0.0 - 5000.0|
|Fog Bottom Height||The height of the bottom of the fog layer, measured in meters, when Enable Fog Layer is activated.||Float: -5000.0 - 5000.0|
|Fog Max Height||The height of the top of the fog layer, measured in meters, when Enable Fog Layer is activated.||Float: -5000.0 - 5000.0|
|Noise Texture||A single-channel noise texture that defines the appearance of the fog turbulence, when Enable Turbulence Properties is activated.||A |
|Noise Texture First Octave||Scales the UV coordinates of the Noise Texture for the first octave.||Vector2: -Infinity to Infinity||X: |
|Noise Texture First Octave Velocity||The velocity of the noise texture’s movement for the first octave, measured in meters per second.||Vector2: -Infinity to Infinity||X: |
|Noise Texture Second Octave||Scales the UV coordinates of the Noise Texture for the second octave.||Vector2: -Infinity to Infinity||X: |
|Noise Texture Second Octave Velocity||The velocity of the noise texture’s movement for the second octave, measured in meters per second.||Vector2: -Infinity to Infinity||X: |
|Octaves Blend Factor||The amount of blend between the first and second octaves. A value of ||Float: 0.0 - 1.0|
|Enable Fog Layer||If enabled, the fog is constrained between two points along the Z-axis, from Fog Bottom Height to Fog Max Height.||Boolean|
|Enable Deferred Fog||If enabled, activates the fog effect in the scene.||Boolean|
|Enable Turbulence Properties||If enabled, creates cloud turbulence in the fog by using Noise Texture. Generate variations of cloud turbulence by configuring the first and second octaves.||Boolean|