self:set_dof_blur_amount

Client

Sets the depth-of-field blur amount of the camera


Syntax

local status = self:set_dof_blur_amount(
    amount
)

Parameters

TypeNameDescription
floatamountDOF blur amount to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_dof_blur_amount(0.1)

On this page