// Find the latest version by visiting https://unpkg.com/three.
// Find the latest version by visiting https://cdn.skypack.dev/three.
import * as THREE from 'https://unpkg.com/three@<version>/build/three.module.js';
import * as THREE from 'https://cdn.skypack.dev/three@<version>';
const scene = new THREE.Scene();
...
...
@@ -79,7 +79,7 @@
</code>
<p>
Not all features are accessed through the <em>build/three.module.js</em> module. Other popular parts of the library — such as controls, loaders, and post-processing effects — must be imported from the [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm examples/jsm] subfolder. To learn more, see <em>Examples</em> below.
Not all features are accessed through the <em>three</em> entrypoint. Other popular parts of the library — such as controls, loaders, and post-processing effects — must be imported from the [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm examples/jsm] subfolder. To learn more, see <em>Examples</em> below.
</p>
...
...
@@ -107,9 +107,9 @@
<code>
<script type="module">
// Find the latest version by visiting https://unpkg.com/three.
// Find the latest version by visiting https://cdn.skypack.dev/three.
import { OrbitControls } from 'https://unpkg.com/three@<version>/examples/jsm/controls/OrbitControls.js';
import { OrbitControls } from 'https://cdn.skypack.dev/three@<version>/examples/jsm/controls/OrbitControls.js';