three-nebula API
    Preparing search index...

    Class RibbonRenderer

    Renders each emitter instance's particles as a single continuous, camera-facing strip — the particles are the spine, in spawn order (spec 01, Stage 4). One strip per emitterInstanceId, so every child-emitter trail is its own ribbon.

    Rebuilt each onSystemUpdate from the live particles the renderer is tracking; width tapers with particle scale, colour/alpha come from the particle. Handles the degenerate cases: a group of fewer than two points is hidden, and zero-length segments reuse the previous orientation rather than emit NaNs.

    Hierarchy

    • default
      • RibbonRenderer
    Index
    • Parameters

      • container: Object3D
      • THREE: __module
      • options: Partial<RibbonRendererOptions> = {}

      Returns RibbonRenderer

    _camPos: Vector3
    _groups: Map<string, Particle[]>
    _lastSide: Vector3
    _next: Vector3
    _prev: Vector3
    _ribbons: Map<string, Ribbon>
    _side: Vector3
    _tangent: Vector3
    _up: Vector3
    _view: Vector3
    container: Object3D
    options: RibbonRendererOptions
    system: System | null
    three: __module
    type: string
    • Tears down the renderer. Implemented by renderers that need cleanup (e.g. the GPURenderer).

      Returns void