multiple instances three.js

by PhilipZhu

HTML

<html>
<head>
</head>
<body>
<script type="importmap">
        {
                "imports": {
                        "three": "https://unpkg.com/three@0.126.1/build/three.module.js",
                        "three/addons/": "https://unpkg.com/three@0.126.1/examples/jsm/"
                }
        }
</script>
<script type="module">
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
//import * as THREE from 'https://unpkg.com/three@0.126.1/build/three.module.js';
//import { OrbitControls } from 'https://unpkg.com/three@0.126.1/examples/jsm/controls/OrbitControls.js';
</script>
</body>
</html>