Texel A field guide to 3D techniques

Exponential Height Fog Quilez

Fog whose density falls off exponentially with altitude, integrated in closed form along the view ray so a fragment shader gets exact extinction and in-scatter with no ray marching.

Also known as analytic height fog, altitude fog

In the family Atmosphere, water & volumes, fog

Where it runs

Built inOfficial add-onPluginNone foundNot researched

EngineSupportHow
three.js r187Built inimport { exponentialHeightFogFactor } from 'three/tsl'; scene.fogNode = ... docs TSL / WebGPURenderer node.
Babylon.js 9.38.0None found
Godot 4.7Built inEnvironment.fog_enabled = true; Environment.fog_height / fog_height_density docs
UnityBuilt inVolume > Add Override > Fog > Enable; Fog Attenuation Distance / Base Height / Maximum Height docs HDRP only; height-based exponential fog.
Unreal 5.7Built inPlace Actors > Visual Effects > Exponential Height Fog docs
Blender 5.2None found
WebGPU W3CNone found
MetalNone found