light.area.create
Client
Creates a new area light instance and adds it to the scene
Syntax
local instance = light.area.create()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
area | instance | Created area light instance |
Examples
local entity = light.area.create()
entity:set_color({1, 1, 1})
entity:set_energy(1.0)
entity:set_position({0, 5, 0})