threejs-worldgen
    Preparing search index...

    Function riverModifiers

    • Height modifiers that carve the rivers into a world: path modifiers along each river with descending bed heights. Add them with world.addModifier(m) (or world.set({ modifiers })). Pass the frame the heights were sampled in; on a planet, points are projected onto the sphere and heights converted to elevations, as the world expects.

      Parameters

      • result: HydrologyResult
      • Optionalframe: ModifierFrame
      • chunk: number = 8

        Points per modifier. Each modifier has one width, so rivers are split to widen downstream.

      Returns FlattenPath[]