self:get_specular

Client

Retrieves the specular contribution factor of the spot light


Syntax

local specular = self:get_specular()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatspecularCurrent specular factor, from 0.0 to 1.0

Examples

Get specular of a spot light
local entity = light.spot.create()

core.engine.print("info", "Spot light specular:", entity:get_specular())

On this page