Dynamic Vertical Fog

FREE
Publisher DreamTeam Mobile
File size 1.39MB
Number of files 10
Latest version 1
Latest release date 2021-07-06 05:14:37
First release date 2021-03-04 10:06:11
Supported Unity versions 2018.4.2 or higher

This asset ONLY works with HDRP/URP on version 2020.2.6 and newer.


The Dynamic Vertical Fog shader is a simple shader based on the Unity Shader Graph, customizable and extensible per your needs. It works with URP and HDRP, mobile-ready, VR-ready. To set up the shader, follow the steps below:


1. In your scene, create a plane with the provided DynamicVerticalFogMaterial material


2. Change Shader/Material properties to satisfy your needs:


- Fog Color - changes the fog color. Alpha channel of the color is used to define the fog transparency


- Fog Density - defines the thickness of the fog


- Fog Noise - make the fog to be dynamic, with thickness not evenly distributed over the plane


- Fog Speed - moves the noise with the given speed


3. (Required) Update the camera Projection setting to be Perspective


4. (Required) Enable Depth Texture in your render pipeline settings. Make sure you update it for each quality setting


5. (Optional) Customize the DynamicVerticalFogShader shader graph per your additional needs. The shader is based on the visual Unity Shader Graph which makes it easy to customize and add additional parameters/nodes


A demo scene is included for your convenience, please select DemoSceneHDRP.scene for High Definition Render Pipeline and DemoSceneURP.scene for Universal Render Pipeline.