self:set_texture
Client
Applies a texture to the area light, which modulates its emitted light pattern
Syntax
local status = self:set_texture(
path
)Parameters
| Type | Name | Description |
|---|---|---|
string | path | File path to the texture to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.area.create()
entity:set_texture("textures/light_panel.png")