self:set_dof_blur_far_distance

Client

Sets the distance at which far depth of field blur begins


Syntax

local status = self:set_dof_blur_far_distance(
    distance
)

Parameters

TypeNameDescription
floatdistanceDistance from the camera at which far DOF blur begins

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_dof_blur_far_enabled(true)
entity:set_dof_blur_far_distance(20)
entity:set_dof_blur_far_transition(5)

On this page