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 "cheating" at atmospheric effects using global fog
使用全局霧效的大氣效果
As with the otherimage effects, this effect is only available in Unity Pro and you must have the Pro Standard Assets installed before it becomes available.
和其他圖像特效一樣,該特效只能在Unity Pro上進行使用,並且在使用之前必須安裝Pro Standard Assets。
Properties 屬性
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 with pixel shaders (2.0) or OpenGL ES 2.0. Additionally, depth texture support is required. PC: NVIDIA cards since 2004 (GeForce 6), AMD cards since 2004 (Radeon 9500), Intel cards since 2006 (GMA X3000); Mobile: OpenGL ES 2.0 with depth texture support; Consoles: Xbox 360, PS3.
這個特效需要顯卡擁有像素着色器(2.0)或者OpenGL ES 2.0。臺式機:2003年以後的NVIDIA顯卡(GeForce 6),2004年以後的AMD顯卡(Radeon 9500),2005年以後的Intel卡(GMA X3000);移動設備:OpenGL ES 2.0;控制檯: Xbox 360、 PS3。
All image effects automatically disable themselves when they can not run on end-users graphics card.
所有圖像特效如果無法在用戶顯卡上運行時將會自動被關閉。