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

TypeNameDescription
floatdegreesAngular distance in degrees to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the angular distance to simulate a soft sun
local entity = light.directional.create()

entity:set_angular_distance(0.5)

On this page