SetDepthOfFieldFocalDistance

Definition

SetDepthOfFieldFocalDistance(float focalDistance)

Description

This function sets the focal distance value of depth of field effect to focalDistance.

Parameters

focalDistance
Specifies the focal distance of depth of field effect. This value must be equal to or greater than 0.0.

Example

function Init()
    SetDepthOfFieldFocalDistance(10.0)
end

function Update()

end
This script sets the focal distance of the depth of field effect to 10.0.
adminSetDepthOfFieldFocalDistance