SC Post Effects Documentation

SC Post Effects
Author: jonathan
Version: 2.1.8
Dated: 12 Jan 2018

8.1.3.Fog #

Adds distance and height-based fog to the scene. Features several color modes:

Uniform color
Fog will be a single color

Gradient Texture
Samples a horizontal gradient texture from left (near) to right (far). Will expose a distance parameter to control the length of the gradient.

Skybox color
Fog will take on the color of the skybox, making it seamlessly blend in.

Height fog density can be controlled by supplying a grayscale texture.

via Gfycat

The light scattering feature will perform another bloom pass inside of the fog. Though, this is not available in URP.

via Gfycat

Transparent materials

Because the effect relies on the depth texture Unity renders, transparent materials will not be affected by fog. Since they don’t contribute to the depth texture, this also applies to unlit or sprite materials. The only way around this is to incorporate the fog shading into custom transparent shader, and using that instead.

For URP, it’s possible to add fog support when using Shader Graph. In the SC Post Effects\Runtime\Fog\ShaderGraph folder, you’ll find an example shader that illustrates how this can be achieved.

Yes No Suggest edit
Last updated on June 11, 2021
2 of 2 users found this section helpful
Suggest Edit