FogSpaceObject::SetFogFunction
Defined in:
Sets the fog function.
C4SpaceObjects.h
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. |
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