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
| Type | Name | Description |
|---|---|---|
float | degrees | Current angular distance in degrees |
Examples
local entity = light.directional.create()
core.engine.print("info", "Angular Distance:", entity:get_angular_distance())