Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
TrailRenderer.hpp File Reference

World-space motion trail renderable (sword swipes, projectile/dash streaks, ribbon effects). More...

Include dependency graph for TrailRenderer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esengine::ecs::TrailRenderer

Namespaces

namespace  esengine
namespace  esengine::ecs

Detailed Description

World-space motion trail renderable (sword swipes, projectile/dash streaks, ribbon effects).

The trail records the entity's world position over time into a point history owned by TrailSystem (per-frame gameplay sim, like the particle system) — this component is PURE CONFIG. TrailPlugin turns that history into a triangle-strip ribbon each frame and streams it through the unified Batch face (CPU-generated verts, exactly like MeshRenderer), so a trail sorts, clips, and multi-texture-merges like every other 2D renderable. No new GPU path, no line-strip topology — a ribbon is triangles.

Author
ESEngine Team
Date
2026

Definition in file TrailRenderer.hpp.