threejs-worldgen
    Preparing search index...

    Function fillSourceTable

    • Fills table from sources (SOURCE_STRIDE floats each: x, y, z, weight, d0…d3) and, optionally, motion (MOTION_STRIDE floats each: vx, vy, vz, opacity; default still and opaque). Sources with weight ≤ 0 are skipped. If there are more than the table holds, the heaviest are kept (ties keep the earlier one), so the selection is deterministic.

      Parameters

      • table: SourceTable
      • sources: ArrayLike<number>
      • count: number = ...
      • Optionalmotion: ArrayLike<number> | null

      Returns SourceTable