threejs-worldgen
    Preparing search index...

    Function sampleCrown

    • Samples params.attractionPoints points uniformly inside the crown envelope, centred above (cx, cz).

      Parameters

      • params: TreeParams
      • rand: () => number
      • cx: number = 0
      • cz: number = 0

      Returns Float32Array

      Interleaved xyz.