Fog overview | High Definition RP | 6.5.3-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Fog overview

    Fog is the effect of overlaying a color onto objects depending on their distance from the Camera. This simulates fog or mist in outdoor environments. The High Definition Render Pipeline (HDRP) provides different methods of producing fog within your Unity Project. HDRP’s Volume framework allows you to easily manage localized fog in different areas of your Scene. To select the type of fog for each Volume, set the Fog Type property in the Volume’s Visual Environment override.

    HDRP provides the following types of fog:

    • Linear Fog: Increases fog density linearly with view distance and world space height. This is useful for applying fog to rendering larger, lower priority, areas of your Scene as it is less resource intensive as the other fog types.
    • Exponential Fog: Increases fog density exponentially with view distance and world space height. This fog type offers a more realistic fog effect than linear.
    • Volumetric Fog: Realistically simulates the interaction of lights with fog, which allows for physically-plausible rendering of glow and crepuscular rays.
    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