threejs-worldgen
    Preparing search index...

    Function flowAccumulation

    • Flow accumulation: each cell's own cellArea plus everything upstream of it. Also returns the cells in upstream-to-downstream order (a topological order of the drainage tree).

      Parameters

      • receivers: Int32Array
      • cellArea: number = 1

      Returns { accumulation: Float64Array; order: Int32Array }