natiny.particles.set_blend

Lua
natiny.particles.set_blend(particles, blend)

Sets whether particles drawn with the default material cover what is behind them or add light to it.

Parameters

Name Type Description
particles number Particle system handle from natiny.particles.create
blend integer natiny.particles.BLEND_ALPHA or natiny.particles.BLEND_ADD

Example

Lua
natiny.particles.set_blend(fire, natiny.particles.BLEND_ADD)