提交 e95ff7d7 编写于 作者: M Michael Guerrero

Merge branch 'dev' into blending-take2

......@@ -18,7 +18,7 @@
<div>Three.js is a library that makes WebGL - 3D in the browser - very easy. 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, 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.min.js">three.min.js</a> in the js/ directory, and open it in your browser.</div>
<code>
&lt;html&gt;
......@@ -27,7 +27,7 @@
&lt;style&gt;canvas { width: 100%; height: 100% }&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script src="https://rawgithub.com/mrdoob/three.js/master/build/three.js"&gt;&lt;/script&gt;
&lt;script src="js/three.min.js"&gt;&lt;/script&gt;
&lt;script&gt;
// Our Javascript will go here.
&lt;/script&gt;
......@@ -121,7 +121,7 @@
&lt;style&gt;canvas { width: 100%; height: 100% }&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script src="three.min.js"&gt;&lt;/script&gt;
&lt;script src="js/three.min.js"&gt;&lt;/script&gt;
&lt;script&gt;
var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册