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
| Type | Name | Description |
|---|---|---|
Vec3 | color | Emitted colour. Multiplied by the particle's own colour when tintFromParticle. Default Vec3(1.0f, 0.85f, 0.6f). |
float | intensity | Peak radiant intensity of a single particle light. Default 4.0f. |
float | radius | Falloff radius in world units. Default 3.0f. |
uint32_t | maxLights | How 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. |
bool | fadeWithLifetime | Fraction 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. |
bool | tintFromParticle | Multiply the emitted colour by the particle's current colour, so a colour-graded spark tints the light it casts. Default true. |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnUpdateRange | |
const char* | GetTypeName | |
Scope<ParticleModule> | Clone |
Function details
OnUpdateRange
C++
void OnUpdateRange(Particle* particles, size_t count, float deltaTime, const float* normalizedAges) overrideGetTypeName
C++
const char* GetTypeName() const overrideClone
C++
Scope<ParticleModule> Clone() const overrideGenerated from Particles/ParticleModule.h via particles.json · Oct 31, 2026Version 1.0.0