Преглед на файлове

Update README.md

Align name of animation loop.
Michael Herzog преди 1 година
родител
ревизия
f1ba3c4fbe
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -43,12 +43,12 @@ scene.add( mesh );
 
 const renderer = new THREE.WebGLRenderer( { antialias: true } );
 renderer.setSize( width, height );
-renderer.setAnimationLoop( animation );
+renderer.setAnimationLoop( animate );
 document.body.appendChild( renderer.domElement );
 
 // animation
 
-function animation( time ) {
+function animate( time ) {
 
 	mesh.rotation.x = time / 2000;
 	mesh.rotation.y = time / 1000;