self:get_size
Client
Retrieves the soft shadow size of the spot light, which controls the apparent source radius for soft shadows
Syntax
local size = self:get_size()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | size | Current soft shadow size |
Examples
local entity = light.spot.create()
core.engine.print("info", "Spot light size:", entity:get_size())