Game dev
Saved & recent

Fog

Related terms: distance fog, depth fog, atmospheric perspective

Blends each pixel toward a single color based on how far away it is. It gives a sense of distance and mood.

It is also an old performance trick. Objects fade out before they reach the far plane, so the world can end closer to the camera without a visible cut.

color = mix(fogColor, color, visibility)

Further reading
Unity: fog and distance fog
near fir ridge tower distance fog clear view fogged view
The same scene uses exponential distance fog on the right: v = exp[−0.065 max(d − 8, 0)], where d is camera range in arbitrary world units. Surface colors and outlines blend toward the theme’s fog color using v. This face-sampled color model keeps geometry and lighting fixed; it does not simulate volumetric scattering.

View in the full Game dev collection