Depth Coloring - Stylized Fog

The Depth Coloring effect allows you to apply a color gradient based on the distance from the camera, creating atmospheric depth effects, fog variations, and stylized scenes. This effect is extremely useful for establishing mood and improving visual depth perception in your 3D scenes.

Setting Up Depth Coloring

To use the Depth Coloring effect, follow these steps:

  1. Enable the Effect: In the material inspector:

  1. Create a Depth Coloring Scriptable Object:

  • Right-click in the Project window

  • Select Create → AllIn1 3D Shader → Other → Depth Coloring Data

  • Name your new Depth Coloring profile appropriately (e.g., "FoggyMountain" or "StylizedFog")

  1. Configure the Depth Coloring Data:

  1. Add the Depth Coloring Camera Component:

  • Select your main Camera in the Hierarchy

  • Add the "Depth Coloring Camera" component

  • Assign your Depth Coloring Data asset to the "Depth Coloring Profile" field

Last updated