threejs-worldgen
    Preparing search index...

    Function Forest

    • Species scattered over terrain around the camera: wraps createVegetationLayers and <Scatter>. seed drives both the variants' shapes and their placement. Changing the species list regenerates the layers; other props apply live.

      Parameters

      Returns Element | null

      <Forest terrain={ground} species={[{ name: 'spruce', density: 0.7 }, { name: 'birch', density: 0.2 }]} />