|
@@ -19,7 +19,7 @@
|
|
|
<div>Three.js is a library that makes WebGL - 3D in the browser - easy to use. While a simple cube in raw WebGL would turn out hundreds of lines of Javascript and shader code, a Three.js equivalent is only a fraction of that.</div>
|
|
|
|
|
|
<h2>Before we start</h2>
|
|
|
- <div>Before you can use Three.js, you need somewhere to display it. Save the following HTML to a file on your computer, along with a copy of <a href="http://threejs.org/build/three.min.js">three.min.js</a> in the js/ directory, and open it in your browser.</div>
|
|
|
+ <div>Before you can use Three.js, you need somewhere to display it. Save the following HTML to a file on your computer, along with a copy of <a href="http://threejs.org/build/three.js">three.js</a> in the js/ directory, and open it in your browser.</div>
|
|
|
|
|
|
<code>
|
|
|
<!DOCTYPE html>
|
|
@@ -33,7 +33,7 @@
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
- <script src="js/three.min.js"></script>
|
|
|
+ <script src="js/three.js"></script>
|
|
|
<script>
|
|
|
// Our Javascript will go here.
|
|
|
</script>
|
|
@@ -132,7 +132,7 @@
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
- <script src="js/three.min.js"></script>
|
|
|
+ <script src="js/three.js"></script>
|
|
|
<script>
|
|
|
var scene = new THREE.Scene();
|
|
|
var camera = new THREE.PerspectiveCamera( 75, window.innerWidth/window.innerHeight, 0.1, 1000 );
|