Seaside Studios
3D Shader
3D Shader
  • What is All In 1 3D Shader
  • Overview
  • First Steps (Must Read)
  • URP And Post Processing Setup
  • Asset Component Features
  • Asset Window
  • Saving Prefabs
  • Convert Materials to 3D Shader
  • Light Models
  • Effects List
  • Scripting
  • Batch Override Materials
  • How to animate effects
  • Advanced Configuration and Key Rendering Concepts
  • How to Enable/Disable Effects at Runtime
  • Random Seed
  • Scaled Time
  • Outlines
  • Wind Effect and Wind Controller
  • Depth Coloring - Stylized Fog
  • Shadow Color
  • Fast Lighting
  • Performance Considerations
  • FAQ (Frequently Asked Questions)
Powered by GitBook
On this page

Depth Coloring - Stylized Fog

PreviousWind Effect and Wind ControllerNextShadow Color

Last updated 1 month ago

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