|
@@ -66,8 +66,8 @@
|
|
<p>
|
|
<p>
|
|
The core of three.js is focused on the most important components of a 3D engine. Many other components like loaders or controls are part of the
|
|
The core of three.js is focused on the most important components of a 3D engine. Many other components like loaders or controls are part of the
|
|
examples directory. three.js ensures that these files are kept in sync with the core but users have to import them separately if they are required
|
|
examples directory. three.js ensures that these files are kept in sync with the core but users have to import them separately if they are required
|
|
- for a project. You can find in the [link:https://github.com/mrdoob/three.js/tree/master/examples/jsm examples/jsm] directory an ES6
|
|
|
|
- module version for almost all example files. If you install three.js via npm, you can import them like so:
|
|
|
|
|
|
+ for a project. You can find them in the [link:https://github.com/mrdoob/three.js/tree/master/examples/jsm examples/jsm] directory. If you install three.js
|
|
|
|
+ via npm, import example files like so:
|
|
</p>
|
|
</p>
|
|
<code>
|
|
<code>
|
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|