Quickly and easily drop in replace URP's linear fog with a color gradient.
Features:
- Very simple drop in. Add RenderFeature and add Post Process Volume Component and BAM, immediately have fog you can edit in real time.
- Supports a quick and easy to use post processing render mode AND a much more optimized shader macro that can be easily dropped into any HLSL shader.
- Highly optimized fog system, with some options for making it even faster if necessary.
- Supports both HSV blending for better visuals, and typical RGB lerps for slower devices.
- Supports VR Multi Pass (MP) and Single Pass Instanced (SPI) rendering!
- Custom Gradient class with unlimited keys (you can use it as a general Gradient replacement, if you need).
- Corgi included
- Full source code included!
- Supports RenderGraph in URP!
- PS: if Unity ever adds support for a 'final color' block in ShaderGraph, corgi fog already has a ShaderGraph node ready to drop in to support it, for ShaderGraph fog in any material.
Documentation available here: https://docs.google.com/document/d/1V-eVGeJ8Ef7CdkbKy-RarvWoTQ68Jj4BWzWF36vjX-E/
Forum post here: Unity forums