Sfoglia il codice sorgente

Update Creating-a-scene.html

change "var" to "let"
aarón montoya-moraga 4 anni fa
parent
commit
137890c69e
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      docs/manual/en/introduction/Creating-a-scene.html

+ 3 - 3
docs/manual/en/introduction/Creating-a-scene.html

@@ -43,10 +43,10 @@
 		<p>To actually be able to display anything with three.js, we need three things: scene, camera and renderer, so that we can render the scene with camera.</p>
 		<p>To actually be able to display anything with three.js, we need three things: scene, camera and renderer, so that we can render the scene with camera.</p>
 
 
 		<code>
 		<code>
-		var scene = new THREE.Scene();
-		var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
+		let scene = new THREE.Scene();
+		let camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
 
 
-		var renderer = new THREE.WebGLRenderer();
+		let renderer = new THREE.WebGLRenderer();
 		renderer.setSize( window.innerWidth, window.innerHeight );
 		renderer.setSize( window.innerWidth, window.innerHeight );
 		document.body.appendChild( renderer.domElement );
 		document.body.appendChild( renderer.domElement );
 		</code>
 		</code>