GetFogDensity

Definition

double GetFogDensity()

Description

This function returns the fog density.

Return Value

Fog density.

Example

density = 0.0

function Init()
    density  = GetFogDensity()

    message = string.format("\nFog density is : %.2f" ,density)
    PrintConsole(message)
end

function Update()

end
In this example, the GetFogDensity function returns the fog density. Then density value is displayed on the console by the PrintConsole function.
adminGetFogDensity