self:get_specular

Client

Retrieves the specular contribution factor of the point 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 point light
local entity = light.point.create()

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

On this page