Parameters

intermediate concepts

Dynamic Fog & Mist 2 (URP) · Core Concepts

Overview

Dynamic Fog & Mist 2 settings are organized into the DynamicFog component (attached to the fog volume GameObject) and the DynamicFogProfile ScriptableObject. This page documents every parameter.

DynamicFog Component Settings

ParameterTypeDescription
ProfileDynamicFogProfileScriptableObject containing all fog appearance settings. Multiple volumes can share the same profile.
Enable FadeboolWhen enabled, the fog volume transitions smoothly as the camera enters or exits the volume boundary, instead of appearing abruptly.
Fade DistancefloatWidth of the blend zone at the volume boundary. The fog transitions from 0% at the edge to 100% at Fade Distance units inside.
Fade ControllerTransformTransform used as the reference point for fade distance calculations (defaults to main camera).
Enable Sub VolumesboolEnables sub-volume support for localized fog parameter overrides within this volume.
Show BoundaryboolShows the fog volume boundary gizmo in the Scene view for easier placement.
Allow RotationboolAllows the fog volume to rotate with its Transform.

Profile — Appearance

ParameterTypeDefaultDescription
DensityfloatOverall fog intensity multiplier. Scales the height-fog formula output. Higher values produce denser, more opaque fog at all distances. For horizontal viewing, fog accumulates approximately proportionally with distance (fog at 2000m is roughly twice the fog at 1000m).
Height SpreadfloatControls the vertical thickness of the fog layer. Internally the shader uses (1 - value) as the height decay rate. Higher values (closer to 1) produce a tall fog layer extending above Base Altitude. Lower values (closer to 0) create thin, ground-hugging fog concentrated near Base Altitude. This does not control distance-based falloff; for horizontal viewing, fog accumulates proportionally with distance regardless of this setting.
Start DistancePushes fog away from the camera. No fog renders within this distance. Useful to keep nearby objects fog-free.
Base AltitudefloatWorld-space Y position of the fog layer base. Fog density is maximum at and below this altitude and decays exponentially above it based on Height Spread.
 Base Altitude ClipbooloffWhen enabled, base altitude acts as a hard clipping plane preventing fog from rendering below it.
Max HeightfloatMaximum height of the fog volume above the base altitude.
Distance MaxfloatMaximum rendering distance from the camera. Objects beyond this distance receive no fog.
Tint ColorColorWhiteBase tint color applied to the fog.
Brightnessfloat1Overall brightness multiplier for the fog color.
Use Vertical GradientboolfalseEnables a vertical color gradient from the base to the top of the fog.
Vertical GradientGradientThe color gradient applied vertically when Use Vertical Gradient is enabled.
Box ProjectionboolfalseEnables box projection for the fog volume bounds, confining fog to the volume shape.
Depth ClipbooltrueClips the fog against scene depth for proper occlusion by geometry.

Profile — Noise & Animation

ParameterTypeDescription
Noise Color BlendfloatBlend factor between the base tint color and the noise color (0 = tint only, 1 = noise only).
Noise ColorColorSecondary color mixed into the fog through the noise pattern.
ScalefloatScale of the 3D noise texture. Smaller values produce larger fog wisps.
TurbulencefloatTurbulence intensity for noise variation. Higher values create more chaotic fog shapes.
SpeedfloatAnimation speed of the fog movement.
DirectionVector3Wind direction vector that controls the fog animation direction.
DitheringfloatDithering strength to reduce color banding artifacts in smooth gradients.

Profile — Lighting

ParameterTypeDescription
Light Diffusion PowerfloatControls the power/spread of light scattering through the fog. Higher values produce tighter scattering cones.
Light Diffusion IntensityfloatIntensity multiplier for light scattering/diffusion. Increase for more pronounced sun glow.
Use Sun ColorboolWhen enabled, the fog lighting automatically uses the directional light color for natural day/night transitions.

Fog of War Settings

ParameterTypeDescription
Enable Fog of WarboolActivates the fog of war system for this volume.
World CenterVector3World-space center of the fog of war coverage area.
Coverage SizeVector3World-space dimensions of the fog of war area.
Texture SizeintResolution of the fog of war texture (power of 2). Larger textures allow finer detail but cost more memory.
Restore DelayfloatSeconds before cleared fog begins restoring. A value of 0 means fog never restores.
Restore DurationfloatSeconds for the fog to fully restore after the delay. A value of 0 means instant change.
Border SmoothnessfloatControls the edge smoothness of cleared fog areas.
BlurfloatProduces a softer transition between clear and opaque fog areas.

Rendering Settings

ParameterTypeDescription
Render QueueintControls the rendering order of this fog volume. Useful when multiple transparent objects overlap.
Was this page helpful?