Documentation
    Preparing search index...

    Class ParticleIdProgram

    The instanced id program for §36 particle systems — the billboard vertex PARTICLE_VERTEX_SHADER_SOURCE shares with ParticleProgram, and the id fragment's flat pickId. One colour for the whole emitter, never a per-particle id. Compiled lazily on the service's first particle item, never at registration or construction.

    Index
    • get disposed(): boolean

      Whether ParticleIdProgram.dispose has run.

      Returns boolean

    • Deletes the GL program (§83). Idempotent; live context only.

      Returns void

    • Uploads one encoded id colour (encodePickId's four floats).

      Parameters

      • encoded: Float32Array

      Returns void

    • Uploads one particle system's world matrix.

      Parameters

      Returns void

    • Uploads the camera's projection. Column-major (§7b).

      Parameters

      Returns void

    • Makes this the current program. Call before any upload below.

      Returns void