self:set_projector
Client
Applies a texture as a projector on the directional light, casting its pattern into the scene
Syntax
local status = self:set_projector(
path
)Parameters
| Type | Name | Description |
|---|---|---|
string | path | File path to the texture to use as a projector |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_projector("textures/gobo_pattern.png")