docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Deferred Fog

    The Deferred Fog effect simulates the look of fog or mist in outdoor environments. To do this, it overlays a color onto objects depending on how far away they are from the Camera.

    Scene rendered with Deferred Fog enabled

    You can also use the Deferred fog effect to hide object clipping. This is useful if you want to bring the Camera’s far clip plane forward to improve performance.

    The Deferred Fog effect creates a screen-space fog based on the camera’s depth texture. It supports Linear, Exponential and Exponential Squared fog types. Deferred Fog settings are on the Scene tab of the Lighting window in Window > Rendering > Lighting Settings.

    Properties

    Property Function
    Enabled Enable this checkbox to turn the Deferred Fog effect on.
    Exclude Skybox Enable this checkbox to exclude fog from the skybox.

    Details

    The Deferred Fog effect only appears in your Post-process Layer if the camera is set to render with the Deferred rendering path. It is enabled by default and adds the support of Deferred Fog from the Lighting window, which would otherwise only work with the Forward rendering path.

    Requirements

    • Depth texture
    • Shader Model 3
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)