self:set_attenuation
Client
Sets the attenuation curve exponent of the point light, which controls how light intensity falls off with distance
Syntax
local status = self:set_attenuation(
attenuation
)Parameters
| Type | Name | Description |
|---|---|---|
float | attenuation | Attenuation exponent to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.point.create()
entity:set_attenuation(1.0)