r.FogDensity
r.FogDensity is a console variable in Unreal Engine 5 (UE5). See what r.FogDensity does, its values, and how to use this cvar in the Unreal console below.
Category: Renderer · Namespace:
rHelp
Allows to override the FogDensity setting (needs ExponentialFog in the level). Using a strong value allows to quickly see which pixel are affected by fog. Using a start distance allows to cull pixels are can speed up rendering. <0: use default settings (default: -1) >=0: override settings by the given value (0:off, 1=very dense fog)
Usage
Unreal console (open with ~)
> r.FogDensity 1Console variables take a value. Replace 1 with the setting you need. Run it with no value to print the current one.