spite/THREE.CubemapToEquirectangular
Helper to extract an equirectangular panorama PNG from any three.js scene. Here's a demo with some cubes: Demo Include script after THREE is included or use npm to install it npm i three.cubemap-to-equirectangular and include it in your code with (remember to require three.js) Define a new instance of THREE.CubemapToEquirectangular.
https://github.com/spite/THREE.CubemapToEquirectangular