self:get_spot_angle_attenuation
Client
Retrieves the spot light cone attenuation, which controls how sharply the edges of the cone fall off
Syntax
local attenuation = self:get_spot_angle_attenuation()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | attenuation | Current cone edge attenuation value |
Examples
local entity = light.spot.create()
core.engine.print("info", "Spot Angle Attenuation:", entity:get_spot_angle_attenuation())