self:set_dof_blur_near_distance

Client

Sets the near depth-of-field blur distance of the camera


Syntax

local status = self:set_dof_blur_near_distance(
    distance
)

Parameters

TypeNameDescription
floatdistanceNear DOF blur distance to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the near DOF blur distance of a camera
local entity = core.camera.create()

entity:set_dof_blur_near_enabled(true)
entity:set_dof_blur_near_distance(2)

On this page