Legacy Documentation: Version 5.6 (Go to current version)
Screen Space Reflection
Depth of Field
Other Versions

Fog

The effect descriptions on this page refer to the default effects found within the post-processing stack.

Fog is the effect of overlaying a color onto objects dependant on the distance from the camera. This is used to simulate fog or mist in outdoor environments and is also typically used to hide clipping of objects when a camera’s far clip plane has been moved forward for performance.

The Fog effect creates a screen-space fog based on the camera’s depth texture. It supports Linear, Exponential and Exponential Squared fog types. Fog settings should be set in the Scene tab of the Lighting window.

Scene with Fog
Scene with Fog
Scene without Fog.
Scene without Fog.
UI for Fog
UI for Fog

Properties

Property: Function:
Exclude Skybox Should the fog affect the skybox?

Details

This effect is only applied in the deferred rendering path. When using either rendering path fog should be applied to forward rendered objects using the Fog found in Scene Settings. The parameters for the Post-processing fog are mirrored from the Fog parameters set in the Scene tab of the Lighting window. This ensures forward rendered objects will always receive the same fog when rendering in deferred.

Requirements

See the Graphics Hardware Capabilities and Emulation page for further details and a list of compliant hardware.


Screen Space Reflection
Depth of Field
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961