Legacy Documentation: Version 5.2
Fisheye
Grayscale

Global Fog

The Global Fog image effect creates camera-based exponential fog. All calculations are done in world space which makes it possible to have height-based fog modes that can be used for sophisticated effects (see example).

Example of global fog, demonstrating both distance and height based fog
Example of global fog, demonstrating both distance and height based fog
Example of cheating at atmospheric effects using global fog
Example of “cheating” at atmospheric effects using global fog

As with the other image effects, you must have the Standard Assets Effects package installed before it becomes available.

Properties

Property: Function:
Fog Mode The available types of fog, based on distance, height or both
Start Distance The distance at which the fog starts fading in, in world space units.
Global Density The degree to which the Fog Color accumulates with distance.
Height Scale The degree to which the fog density reduces with height (when height-based fog is enabled).
Height The world space Y coordinate where fog starts to fade in.
Global Fog Color The color of the fog.

Hardware Support

This effect requires a graphics card that supports Depth Textures. See the Graphics Hardware Capabilities and Emulation page for further details and a list of compliant hardware.

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