self:set_specular
Client
Sets the specular contribution factor of the area light
Syntax
local status = self:set_specular(
specular
)Parameters
| Type | Name | Description |
|---|---|---|
float | specular | Specular factor to apply, from 0.0 to 1.0 |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.area.create()
entity:set_specular(1.0)