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_DeferredShadingTiled
console variable to a value greater than 0. The recommended value is1
to2
. 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_VolumetricFogTexDepth
console variable accordingly.
ExampleThe default value for the
r_VolumetricFogTexDepth
console variable is32
and the default value for Range is64
. If you want to use a larger range such as Range=256
and maintain the same visual quality, you need to setr_VolumetricFogTexDepth
to64
.When Range is
1024
, setr_VolumetricFogTexDepth
to128
.