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

TypeNameDescription
stringpathFile path to the texture to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply a texture to an area light
local entity = light.area.create()

entity:set_texture("textures/light_panel.png")

On this page