self:set_negative
Client
Sets whether the directional light operates in negative mode, subtracting light from the scene
Syntax
local status = self:set_negative(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to enable negative mode, false to disable |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_negative(true)