self:set_dof_blur_near_distance

Client

Sets the distance at which near depth of field blur begins


Syntax

local status = self:set_dof_blur_near_distance(
    distance
)

Parameters

TypeNameDescription
floatdistanceDistance from the camera at which near DOF blur begins

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

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

On this page