C4 Engine
C4 Engine API Documentation

FogSpaceObject::SetFogFunction

Defined in:  C4SpaceObjects.h
Sets the fog function.
Prototype

void SetFogFunction(FogFunction function);

Parameters
function The new fog function.
Description
The SetFogFunction function sets the fog function to that specified by the function parameter, which can be one of the following constants.
kFogFunctionConstant Use constant fog density.
kFogFunctionLinear Use linearly increasing fog density.
If the fog function is kFogFunctionConstant, then the density of the fog is constant everywhere beneath the fog plane. (This density is specified using the FogSpaceObject::SetFogDensity function.) If the fog function is kFogFunctionLinear, then the fog density is given by ρz, where ρ is the fog density, and z is the distance beneath the fog plane.
See Also

FogSpaceObject::GetFogFunction

FogSpaceObject::SetFogDensity