threejs-worldgen
    Preparing search index...

    Function PopulationOverlay

    • Hex choropleth of population (and its networks) over the terrain. Props are the full truth: removing a prop reverts it.

      Parameters

      Returns Element | null

      function Scene() {
      const world = useWorld({ seed: 'meadow' })
      const population = usePopulation(world, { totalPopulation: 900_000 })
      return <PopulationOverlay population={population} mode="lights" extrude={0} />
      }