HDRP Volumetric Fog without height

Is it possible to get volumetric fog, lighting, and shadows without any height?

As of now, there has to be a Base and Mean Height, which leaves an odd fog separation line in the distance, which looks odd in space scenes. If the base/mean height is set very high, we lose volumetric shadows and lighting.

3rd party Asset Store volumetric solutions are able to do this with the built-in renderer without any height settings for a uniformly distributed fog. Does anyone know how to accomplish this with HDRP?

Solution:

For homogenous volumetric fog/lighting/shadowing without height, use a density volume in conjunction with a global Volumetric Fog. Density volumes allow volumetric fogs without height.

If you don’t want height fog, turn up the base fog distance in the Volumetric Fog Volume Profile settings extremely high so it doesn’t even show in the camera.

Then, add a Density Volume via GameObject > Rendering > Density Volume. Adjust the size of the density volume and the fog settings in the Density Volume component.

Adjust Global Anisotropy in the Volumetric Fog Volume Profile settings to achieve the desired volumetric lighting/shadowing result.

For some reason, this info was moved to the lighting section of the recent HDRP docs rather than the Volumetric Fog section.

1 Like