Quick Start

COMPATIBILITY

The asset supports Unity 2021.3+, both URP and Built-In (including Unity 6 and 6.1).

Limitations

  • MSAA is not supported.

  • Viewport Rect is only supported in Unity 6 and above.

  • SMSS is not fully supported with Cameras stack (the disable scene view option must be turned on).

  • Only supports directional light scattering.

  • Non-volumetric.

  • Requires devices capable of depth rendering.

  • No support for orthographic camera, VR, WebGL, VFX graph particles blending.

Before Importing

If you are using Built-in, ensure that Shader Graph is installed in your project. Shader Graph is required for the demo scenes to work.

IMPORTING

After downloading the asset, import the appropriate .unitypackage file based on your Unity version and SRP (either Built-in.unitypackage, URP 6.unitypackage, or URP2022.unitypackage).

HOW TO USE

BUILT-IN

Ensure you have the Post Processing Stack V2 installed in your project. You can then easily add the Better Fog effect to your volumes.

You need one of the following in your scene:

  • A directional light with shadows enabled.

  • The CameraDepth.cs script added to your camera to enable the camera depth texture.

For the demo scene Lit materials to work, you need to have the shader graph installed in your project.

MSAA is not supported! You need to turn it off to make the fog look good.

URP

Make sure your URP asset has depth texture enabled.

Add BetterFogFeature to your URP data asset.

Set the Event property to "Before Rendering Post Processing".

Now you can add the Better Fog effect to your post-processing volume.

If you encounter issues setting up, you can use the provided URP settings asset. Adjust it via the Graphics section in your project settings. Ensure that the render asset is not overridden in the Quality tab.

Make sure in the Quality tab render asset is not overridden.

ISSUES

If you encounter any difficulties in using, implementing, or understanding the asset, please feel free to reach out to me at izzynab.publisher@gmail.com or via Discord.

Last updated