self:set_negative

Client

Sets whether the point 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 point light
local entity = light.point.create()

entity:set_negative(true)

On this page