threejs-worldgen
    Preparing search index...

    Function riverFlow

    • Surface velocity (m/s, x and z) of a river from the gradients of its water level and of the channel strength: downhill along the level, with the across-channel part removed (water runs along the channel), at flowSpeed·√(slope / 1%), faster mid-channel.

      Parameters

      • levelDx: number
      • levelDz: number
      • riverDx: number
      • riverDz: number
      • strength: number
      • o: RiverFlowOptions

      Returns [number, number]