self:set_projector

Client

Applies a texture as a projector on the spot light, casting its pattern into the scene


Syntax

local status = self:set_projector(
    path
)

Parameters

TypeNameDescription
stringpathFile path to the texture to use as a projector

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply a projector texture to a spot light
local entity = light.spot.create()

entity:set_projector("textures/gobo_pattern.png")

On this page