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

TypeNameDescription
boolstatetrue to enable negative mode, false to disable

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply negative on a directional light
local entity = light.directional.create()

entity:set_negative(true)

On this page