self:set_size

Client

Sets the soft shadow size of the spot light, which controls the apparent source radius for soft shadows


Syntax

local status = self:set_size(
    size
)

Parameters

TypeNameDescription
floatsizeSoft shadow size to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the soft shadow size of a spot light
local entity = light.spot.create()

entity:set_size(0.5)

On this page