OptionalcolorFog colour, in display (sRGB) space like every other colour
Exposure and the tone curve apply to it as they do to the scene, so give View3D#background the same colour and fully fogged surfaces meet it with no seam, whatever the tone mapping and exposure.
OptionaldensityHow quickly exponential fog thickens, where 0 means no fog; linear fog ignores it
OptionalfarDistance where linear fog becomes solid, in world units; the other curves ignore it
OptionalnearDistance where linear fog starts, in world units; the other curves ignore it
Optional ReadonlytypeHow the fog thickens with distance; see FogType
Read-only: assign a new object to View3D#fog to switch curves.
Distance fog settings for View3D#fog
Materials with
fogturned off, such as a skybox or water that fades itself, ignore it.Example