self:get_attenuation
Client
Retrieves the attenuation curve exponent of the spot light, which controls how light intensity falls off with distance
Syntax
local attenuation = self:get_attenuation()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | attenuation | Current attenuation exponent |
Examples
local entity = light.spot.create()
core.engine.print("info", "Spot light attenuation:", entity:get_attenuation())