threejs-hex-map
threejs-hex-map copied to clipboard
Torus view (horizontal map wrap around)
Currently the map is displayed a continuous rectangle. To support use cases like the Civilization games horizontal wrap around should be supported. That means: When the camera hits the boundary of the map on either side the tiles should wrap around so that the map geometry continues with the tiles on the other side of the map.
However, no tile should be rendered twice. I.e. this only makes sense when the camera is restricted so that it cannot zoom out far enough for it to see the entire map at once.