GPU Particles

self:set_unshaded

Client

Sets whether particles ignore scene lighting

Syntax

local status = self:set_unshaded(
    state
)

Parameters

TypeNameDescription
boolstatetrue to ignore lighting, false to light the particles

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Light the particles
local entity = particle.gpu.create()

entity:set_unshaded(false)

On this page