Documentation
    Preparing search index...

    Variable PARTICLE_ATTRIBUTE_LOCATIONSConst

    PARTICLE_ATTRIBUTE_LOCATIONS: {
        corner: 0;
        instanceColor: 3;
        instancePosition: 1;
        instanceRotation: 4;
        instanceSize: 2;
        instanceSoftness: 5;
    } = ...

    Vertex attribute slots the particle pipeline binds, all fixed by layout(location = …) in the vertex shader — the rule POSITION_ATTRIBUTE_LOCATION already establishes, so no getAttribLocation and no per-program vertex array.

    Slot 0 is the shared corner quad, three floats per vertex, advancing per vertex (divisor 0); slots 1–3 are the interleaved instance stream, advancing once per particle (divisor 1).

    Type Declaration

    • Readonlycorner: 0

      Unit-quad corner offset, from the shared geometry. Same slot as every other pipeline.

    • ReadonlyinstanceColor: 3

      Current straight-alpha RGBA (vec4).

    • ReadonlyinstancePosition: 1

      Particle centre in the node's local space (vec3).

    • ReadonlyinstanceRotation: 4

      Billboard rotation in radians — wide stream only (R-32).

    • ReadonlyinstanceSize: 2

      Current size in world units (float).

    • ReadonlyinstanceSoftness: 5

      Softness in [0, 1] — wide stream only (R-32).