self:set_dof_blur_amount

Client

Sets the camera's depth of field blur intensity


Syntax

local status = self:set_dof_blur_amount(
    amount
)

Parameters

TypeNameDescription
floatamountDOF blur amount
Controls the overall intensity of the blur effect

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_dof_blur_far_enabled(true)
entity:set_dof_blur_amount(0.5)

On this page