Module effects

Source
Expand description

Batched low-poly particle billboards and ribbons over the shared color stream. No per-particle mesh, material, texture, GPU buffer or shader allocation.

Structs§

BeamPool
BillboardView
DrawReport
EffectBatch
EffectStats
EffectStyle
ParticlePool
ParticleRenderer
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.
ParticleStyle
ParticleView
RibbonPoint
RibbonTriangle
RibbonTriangles
Triangle iterator with bounded miters and explicit breaks; no allocation.
RibbonVertex
SpriteBatch
ABI: 16 bytes; triangles is 1 for a triangle or 2 for a quad/diamond.
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_segment or Self::teleport for explicit discontinuities, including short respawn jumps, and Self::clear to reset all trail history.

Enums§

EffectBlend
EffectError
ParticleShape
RibbonFacing

Constants§

MAX_EFFECT_VERTICES
SPRITE_FRAGMENT_BODY
SPRITE_VERTEX_BODY

Traits§

RibbonSource

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.
particle_triangles
CPU reference geometry for software hosts and GPU comparison tests.
stats