docs.unity3d.com
    Show / Hide Table of Contents

    Volumetric Lighting

    The High Definition Render Pipeline (HDRP) includes a volumetric lighting system that renders Volumetric Fog. HDRP also implements a unified lighting system, which means that all Scene components (such as Lights, as well as opaque and transparent GameObjects) interact with the fog to make it volumetric.

    Enabling Volumetric Lighting

    To enable and customize Volumetric Lighting in an HDRP Asset:

    1. Select an HDRP Asset in your Unity Project and view it in the Inspector. In the Lighting section, enable the Volumetrics checkbox.
    2. If you want to increase the resolution of the volumetrics, enable the High Quality checkbox. Volumetric lighting is a resource intensive effect and this option can potentially increase the resource intensity by up to eight times.
    3. Go to Edit > Project Settings > HDRP Default Settings and, in the Default Frame Settings section, under the Lighting subsection, make sure you enable Fog and Volumetrics if they are not already.
    4. Still in Default Frame Settings, if you want to enable reprojection support, enable Reprojection. This option improves the lighting quality in the Scene by taking previous frames into account when calculating the lighting for the current frame. Currently, this option is not compatible with dynamic lights, so you may encounter ghosting artifacts behind moving Lights. Additionally, using high values for Anisotropy in the Fog Volume override may cause flickering Shadows.

    Notes

    Volumetric fog does not work for Cameras that use oblique projection matrices. If you want a Camera to render volumetric fog, do not assign an off-axis projection to it.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023