GPU Particles

self:set_blend_mode

Client

Sets the blend mode used to draw particles

Syntax

local status = self:set_blend_mode(
    mode
)

Parameters

TypeNameDescription
particle.gpu.blend_modemodeBlend mode to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Draw glowing particles
local entity = particle.gpu.create()

entity:set_blend_mode(particle.gpu.blend_mode.ADD)

On this page