threejs-worldgen
    Preparing search index...

    Function createRingGeometry

    • The ocean's ring grid in unit radii: a centre vertex, then rings at radius g^i (i = 0 …) with g = 2^(1/m) chosen so cells are roughly square. Scaling it by a power of two maps rings onto rings.

      Parameters

      • segments: number
      • range: number

      Returns BufferGeometry