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
| Type | Name | Description |
|---|---|---|
float | size | Soft shadow size to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:set_size(0.5)