threejs-worldgen
    Preparing search index...

    Function Scatter

    • Streams instanced objects over terrain around the camera, for react-three-fiber.

      Parameters

      Returns Element | null

      <mesh ref={ground} geometry={hills} />
      <Scatter terrain={ground} layers={[{ name: 'rock', spacing: 8, lods: [{ distance: 120, geometry, material }] }]} />