self:get_angular_distance

Client

Retrieves the angular distance of the directional light in degrees, which controls the softness of shadows by simulating a light source with angular size


Syntax

local degrees = self:get_angular_distance()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatdegreesCurrent angular distance in degrees

Examples

Get the angular distance of a directional light
local entity = light.directional.create()

core.engine.print("info", "Angular Distance:", entity:get_angular_distance())

On this page