A simple vertical/height fog shader that just works.
Optimized for Mobile and great for Desktop too.
Doesn't work with Orthographic camera but you can use a low FOV Perspective camera as a workaround.If you're looking to simulate clouds or volumetric fog, check out Advanced Fog. It includes this package.
Supported Unity versions:
2017.1 or higher
Supports:
- Standard
- Lightweight Render Pipeline (LWRP)
- Universal Render Pipeline (URP)
- High Definition Render Pipeline (HDRP)
The package contains:
1x Standard/LWRP/URP Shader
1x HDRP Shader
1x Script for fixing depth for Mobile builds
Quick Setup:
1. Create new material
2. Drop shader on top of material or select from dropdown
3. Drop material on top of plane 3D object
The shader has adjustable Color, Opacity and Intensity.