self:set_angular_distance
Client
Sets the angular distance of the directional light in degrees, controlling shadow softness by simulating a light source with angular size
Syntax
local status = self:set_angular_distance(
degrees
)Parameters
| Type | Name | Description |
|---|---|---|
float | degrees | Angular distance in degrees to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_angular_distance(0.5)