Documentation
    Preparing search index...

    Function registerParticlePipeline

    • Opts this process's WebglRenderers into §36's instanced particle draws (§62; 2026-09-11).

      import { registerParticlePipeline } from "@fourjs/render-webgl";
      registerParticlePipeline(); // once, at application setup

      Calling it is what links this module — three programs, their GLSL, and the two batch caches — into the bundle; a build that never calls it carries none of it. The billboard program still compiles lazily, on each renderer's first particle item, and the appearance and trail programs on the first item that needs them, never here and never at renderer initialize, so registration alone changes no GL transcript. Without it, particle items are skipped with one development warning. Idempotent; calling it twice re-installs the same factory.

      Returns void