Atmospheric Height Fog | Optimized Fog for Consoles, Mobile and VR

Updated
2024-11-25
VIP
Vfx
Version
3.4.0
File size
3.2 MB
Views
247
Only For Premium or VIP Users
Description

○ Overview

 

Simple yet beautiful height fog with directional light and animated noise support. The height fog will provide a volumetric-like effect while using a lower computation power! Built with Amplify Shader Editor, all shaders can be modified with ease to your needs. Add fog support for any transparent shader using the functions available for Amplify Shader Editor, Shader Graph, or any custom-written shader!

 

○ Compatibility

 

Atmospheric Height Fog supports the following Render Pipelines:

Standard Render Pipeline

Universal Render Pipeline

HD Render Pipeline

 

Atmospheric Height Fog has integration with the following 3rd party tools:

Amplify Shader Editor - Full shader editing support

Crest for Standard RP by Wave Harmonic - Manual setup required

Crest for Universal RP by Wave Harmonic - Manual setup required

R.A.M 2019 for URP by Nature Manufacture - Manual setup required

Lux Water for Standard RP by Forst - Manual setup required

Stylized Water For URP by Alexander Ameye - Manual setup required

Stylized Water by Staggart Creations - Manual setup required

 

○ Features

 

Easy to set up

Distance-based fog

Dual-color fog

Height-based fog

Directional light fog

Fog Axis Selection

3D animated noise support

Volume blending support

Fog Presets

Basic Time Of Day via Day-Night preset interpolation

Zero global keywords usage (2019.1+)

 

ApplyHeightFog for Amplify Editor function, usable to add fog support for transparent shaders made with Amplify Shader Editor

ApplyHeightFog for Shader Graph function usable to add fog support for transparent shaders made with Unity Shader Graph

AtmosphericHeightFog.cginc functions usable to add fog support for custom transparent shaders

UI Default shader with Height Fog support, when the UI is used in World Space Canvas

 

VR Support

Forward and Deferred support

Perspective and Orthographic support

Scene view visibility support

Basic demo scene included

 

○ Limitations

 

🞫 SM2 devices are not supported

🞫 Only higher-end mobile devices are recommended

🞫 Only one directional light is supported

🞫 Point lights and spotlights are not supported

🞫 This is not a true volumetric fog solution

🞫 This fog requires depth texture rendering

🞫 Transparent objects will cause visual artifacts because they don't write to the depth texture and a manual setup is required to make them work properly

🞫 HDRP Raytracing and Pathtracing are not supported!

🞫 MSAA can cause visual artifacts because the depth texture is not using it

🞫 Only the latest LTS Unity versions are officially supported!

 

○ Disclaimer

 

⚑ The fog is based on the unity depth texture. Any transparent shaders or shaders that don't write to the depth texture will not work with the fog. Support for these shaders needs to be added manually by code, via Shader Graph, or via Amplify Shader Editor. Examples of custom shaders and asset store water systems are provided in the documentation!

 

⚑ The fog can be expensive on standalone VR because using the depth texture is expensive! The fog is only recommended for tethered VR applications!

 

⚑ Atmospheric Height Fog is a cheap height fog solution, not a true volumetric effect. While it adds missing features on Standard RP and URP like height mask, directional color, and 3D noise support, it will never replace the high-quality volumetric fog provided by HDRP! HDRP support was added at users' request and it offers a really cheap/familiar solution for the fog! Atmospheric Height Fog doesn't use post-processing and it can be used alongside other fog solutions.

Comments
Comments is not yet
Add Comment
Please register
You may also like