self:set_far_clip

Client

Sets the camera's far clip distance


Syntax

local status = self:set_far_clip(
    far_clip
)

Parameters

TypeNameDescription
floatfar_clipFar clip distance to apply
Objects beyond this distance will not be rendered

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_far_clip(2000)

On this page