GPU Particles

self:set_draw_order

Client

Sets the order in which particles are drawn

Syntax

local status = self:set_draw_order(
    order
)

Parameters

TypeNameDescription
particle.gpu.draw_orderorderDraw order to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Draw the closest particles last
local entity = particle.gpu.create()

entity:set_draw_order(particle.gpu.draw_order.VIEW_DEPTH)

On this page