self:set_spot_angle_attenuation
Client
Sets the spot light cone attenuation, which controls how sharply the edges of the cone fall off
Syntax
local status = self:set_spot_angle_attenuation(
attenuation
)Parameters
| Type | Name | Description |
|---|---|---|
float | attenuation | Cone edge attenuation value to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:set_spot_angle_attenuation(0.5)