self:set_specular

Client

Sets the specular contribution factor of the spot light


Syntax

local status = self:set_specular(
    specular
)

Parameters

TypeNameDescription
floatspecularSpecular factor to apply, from 0.0 to 1.0

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply specular on a spot light
local entity = light.spot.create()

entity:set_specular(1.0)

On this page