Best Practices for Volumetric Fog
Best Practices for Volumetric Fog
See the following best practices for working with volumetric fog.
Attach a Fog Volume and a Box Shape component to the entity.
Set the
r_DeferredShadingTiledconsole variable to a value greater than 0. The recommended value is1to2. This is required to use volumetric fog. For more information, see Using the Console Window.To avoid performance problems, use the default values for the Ramp Start and Ramp End parameters located in the Time of Day editor. For more information, see Setting Global \(Time of Day\) Volumetric Fog.
In the Time of Day Editor, large values for the Range parameter can cause fog flicker and light leaking behind walls.
To correct this effect, you can adjust the value for the
r_VolumetricFogTexDepthconsole variable accordingly.
ExampleThe default value for the
r_VolumetricFogTexDepthconsole variable is32and the default value for Range is64. If you want to use a larger range such as Range=256and maintain the same visual quality, you need to setr_VolumetricFogTexDepthto64.When Range is
1024, setr_VolumetricFogTexDepthto128.