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

TypeNameDescription
floatattenuationCone edge attenuation value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Soften the cone edges of a spot light
local entity = light.spot.create()

entity:set_spot_angle_attenuation(0.5)

On this page