Exponential Terrain Fog

com.zalinteractive.nebula sample

Exponential Terrain Fog

Open Exponential Terrain Fog.unity and enter Play mode. The scene demonstrates a global exponential fog layer whose base follows a selected Unity Terrain surface.

Select Nebula Terrain Height Field to inspect the shared 512-sample terrain field. Select Global Fog Volume to inspect the Exponential profile, Terrain height reference, and Suppress Fog behavior used by the scene. Raise the camera or the Height Reference Marker to see density decrease continuously above the terrain-relative base.

The sample intentionally uses an explicit Terrain list. Add adjacent tiles to that list when adapting the setup to a tiled world. Use Use World Height when fog should continue outside the assigned terrain bounds; keep Suppress Fog when uncovered positions and Terrain holes should remain clear.

Nebula must be enabled on the URP renderer used by the camera.