Sfoglia il codice sorgente

Simplified usage example.

Mr.doob 13 anni fa
parent
commit
0709e797b3
1 ha cambiato i file con 2 aggiunte e 7 eliminazioni
  1. 2 7
      README.md

+ 2 - 7
README.md

@@ -22,8 +22,8 @@ This code creates a scene, then creates a camera, adds the camera and cube to th
 ```html
 <script>
 
-	var camera, scene, renderer,
-	geometry, material, mesh;
+	var camera, scene, renderer;
+	var geometry, material, mesh;
 
 	init();
 	animate();
@@ -52,11 +52,6 @@ This code creates a scene, then creates a camera, adds the camera and cube to th
 
 		// note: three.js includes requestAnimationFrame shim
 		requestAnimationFrame( animate );
-		render();
-
-	}
-
-	function render() {
 
 		mesh.rotation.x += 0.01;
 		mesh.rotation.y += 0.02;