|
@@ -28,8 +28,8 @@ an optional feature of three.js so first we need to include them
|
|
in our page
|
|
in our page
|
|
|
|
|
|
```javascript
|
|
```javascript
|
|
-<script src="resources/threejs/r94/three.min.js"></script>
|
|
|
|
-+<script src="resources/threejs/r94/js/controls/OrbitControls.js"></script>
|
|
|
|
|
|
+<script src="resources/threejs/r98/three.min.js"></script>
|
|
|
|
++<script src="resources/threejs/r98/js/controls/OrbitControls.js"></script>
|
|
```
|
|
```
|
|
|
|
|
|
Then we can use them. We pass the `OrbitControls` a camera to
|
|
Then we can use them. We pass the `OrbitControls` a camera to
|
|
@@ -475,8 +475,8 @@ The `RectAreaLight` only works with the `MeshStandardMaterai` and the
|
|
To use the `RectAreaLight` we need to include some extra three.js optional data
|
|
To use the `RectAreaLight` we need to include some extra three.js optional data
|
|
|
|
|
|
```html
|
|
```html
|
|
-<script src="resources/threejs/r94/three.min.js"></script>
|
|
|
|
-+<script src="resources/threejs/r94/js/lights/RectAreaLightUniformsLib.js"></script>
|
|
|
|
|
|
+<script src="resources/threejs/r98/three.min.js"></script>
|
|
|
|
++<script src="resources/threejs/r98/js/lights/RectAreaLightUniformsLib.js"></script>
|
|
```
|
|
```
|
|
|
|
|
|
If you forget the data the light will still work but it will look funny so
|
|
If you forget the data the light will still work but it will look funny so
|
|
@@ -571,7 +571,7 @@ possible to achieve your goals.
|
|
Next up let's go over [dealing with cameras](threejs-cameras.html).
|
|
Next up let's go over [dealing with cameras](threejs-cameras.html).
|
|
|
|
|
|
<canvas id="c"></canvas>
|
|
<canvas id="c"></canvas>
|
|
-<script src="../resources/threejs/r94/three.min.js"></script>
|
|
|
|
-<script src="../resources/threejs/r94/js/controls/OrbitControls.js"></script>
|
|
|
|
|
|
+<script src="../resources/threejs/r98/three.min.js"></script>
|
|
|
|
+<script src="../resources/threejs/r98/js/controls/OrbitControls.js"></script>
|
|
<script src="resources/threejs-lesson-utils.js"></script>
|
|
<script src="resources/threejs-lesson-utils.js"></script>
|
|
<script src="resources/threejs-lights.js"></script>
|
|
<script src="resources/threejs-lights.js"></script>
|