GetDepthOfFieldFocalDistance

Definition

double GetDepthOfFieldFocalDistance()

Description

This function returns the focal distance of depth of field effect.

Return Value

Focal distance of depth of field effect.

Example

distance = 0.0

function Init()
    distance  = GetDepthOfFieldFocalDistance()

    message = string.format("\nDepth of field focal distance is : %.2f" ,distance)
    PrintConsole(message)
end

function Update()

end
In this example, the GetDepthOfFieldFocalDistance function returns the focal distance of depth of field effect. Then distance value is displayed on the console by the PrintConsole function.
adminGetDepthOfFieldFocalDistance