class

LightModule

Light module - the emitter's brightest particles become dynamic point lights that illuminate the scene. The module owns no per-particle state; it is a budgeted marker the renderer reads (see Scene::SubmitParticleLights) so sparks, embers and muzzle flashes light the walls around them.

Module
Particles
Header
#include "Particles/ParticleModule.h"
Namespace
Mowo

Properties

TypeNameDescription
Vec3colorEmitted colour. Multiplied by the particle's own colour when tintFromParticle. Default Vec3(1.0f, 0.85f, 0.6f).
floatintensityPeak radiant intensity of a single particle light. Default 4.0f.
floatradiusFalloff radius in world units. Default 3.0f.
uint32_tmaxLightsHow many of the emitter's particles may be lights in one frame. The brightest/largest are chosen first so a dense spark burst still lights the scene without spawning thousands of lights. Default 8.
boolfadeWithLifetimeFraction of each light's intensity scaled by the particle's normalized remaining life, so a dying ember fades its light out with it. Default true.
booltintFromParticleMultiply the emitted colour by the particle's current colour, so a colour-graded spark tints the light it casts. Default true.

Public functions

ReturnsNameDescription
voidOnUpdateRange
const char*GetTypeName
Scope<ParticleModule>Clone

Function details

OnUpdateRange

C++
void OnUpdateRange(Particle* particles, size_t count, float deltaTime, const float* normalizedAges) override

GetTypeName

C++
const char* GetTypeName() const override

Clone

C++
Scope<ParticleModule> Clone() const override
Generated from Particles/ParticleModule.h via particles.json · Oct 31, 2026Version 1.0.0