|
@@ -97,7 +97,7 @@ Tout d'abord, chargeons three.js :
|
|
|
|
|
|
```html
|
|
```html
|
|
<script type="module">
|
|
<script type="module">
|
|
-import * as THREE from './resources/threejs/r114/build/three.module.js';
|
|
|
|
|
|
+import * as THREE from './resources/threejs/r119/build/three.module.js';
|
|
</script>
|
|
</script>
|
|
```
|
|
```
|
|
|
|
|
|
@@ -121,7 +121,7 @@ dans le document html :
|
|
|
|
|
|
```html
|
|
```html
|
|
<script type="module">
|
|
<script type="module">
|
|
-import * as THREE from './resources/threejs/r114/build/three.module.js';
|
|
|
|
|
|
+import * as THREE from './resources/threejs/r119/build/three.module.js';
|
|
|
|
|
|
+function main() {
|
|
+function main() {
|
|
+ const canvas = document.querySelector('#c');
|
|
+ const canvas = document.querySelector('#c');
|
|
@@ -415,7 +415,7 @@ par le biais d'une balise <code><script type="module"></code>. Voici un ex
|
|
</p>
|
|
</p>
|
|
<pre class=prettyprint>
|
|
<pre class=prettyprint>
|
|
<script type="module">
|
|
<script type="module">
|
|
-import * as THREE from './resources/threejs/r114/build/three.module.js';
|
|
|
|
|
|
+import * as THREE from './resources/threejs/r119/build/three.module.js';
|
|
|
|
|
|
...
|
|
...
|
|
|
|
|