Module effects
Expand description
Original bounded simulation and shared low-poly GPU effect rendering.
Modules§
- presets
- Original procedural templates. Units are meters/seconds; scale the authored velocity, acceleration and size for pixel-coordinate games.
Structs§
- Beam
Desc - Beam
Pool - Beam
View - Billboard
View - Burst
Admission - Read-only burst admission at the pool’s current occupancy.
- Direction
Cone - Draw
Report - Effect
Stats - Effect
Style - Emission
Stats - Emitter
- Particle position/velocity and spawn shapes are emitter-local; acceleration remains world-space so rotating a nozzle does not rotate gravity. Counter-seeded emission: dropped work still advances the sequence without iterating it, so pool capacity/quality cannot perturb a gameplay RNG or the random values assigned to later requested particles. No per-frame allocation.
- Emitter
Desc - Emitter
Transform - Particle
Desc - Particle
Motion - Particle
Pool - Particle
Renderer - Scratch is allocated once. Alpha 3D particles sort by camera depth with an allocation-free unstable sort and explicit tie order. Oversized pools are truncated to this renderer’s capacity, independently of the geometry budget.
- Particle
Style - Particle
View - Ribbon
Path - Ribbon
Point - Ribbon
Triangle - Ribbon
Triangles - Triangle iterator with bounded miters and explicit breaks; no allocation.
- Ribbon
Vertex - Trail
- Fixed ring, distance resampling and a current head. Capacity bounds the visible
point count (including that head); one extra head value is stored separately.
Stops and teleports create breaks; old segments fade naturally without bridges.
Use
Self::break_segmentorSelf::teleportfor explicit discontinuities, including short respawn jumps, andSelf::clearto reset all trail history. - Trail
Config - Trail
Sample - Trail
Stats
Enums§
- Beam
Error - Effect
Blend - Effect
Error - Overflow
Policy - Particle
Error - Particle
Shape - Ribbon
Error - Ribbon
Facing - Spawn
Shape - Trail
Error
Constants§
- MAX_
BEAMS - MAX_
EFFECT_ LIFETIME - MAX_
EMISSION_ PER_ UPDATE - MAX_
PARTICLES - MAX_
RIBBON_ POINTS - MAX_
RIBBON_ WIDTH - Largest accepted full ribbon width, in world units.
- MAX_
TRAIL_ POINTS
Traits§
Functions§
- draw_
beams - draw_
ribbon - draw_
triangles - Record unlit, normalized RGBA triangles with the current camera. This color stream is shared with ordinary geometry; flags preserve blend/depth/HUD order. At most 65,536 triangles are examined per frame, including malformed input.
- effect_
stats - particle_
triangles - CPU reference geometry for software hosts and GPU comparison tests.