Depth Coloring - Stylized Fog
Last updated
Last updated
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.
To use the Depth Coloring effect, follow these steps:
Enable the Effect: In the material inspector:
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")
Configure the Depth Coloring Data:
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