self:get_dof_blur_amount

Client

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


Syntax

local amount = self:get_dof_blur_amount()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatamountCurrent DOF blur amount

Examples

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

core.engine.print("info", "DOF blur amount:", entity:get_dof_blur_amount())

On this page