浏览代码

Playground: Fix animation loop reference (#28093)

sunag 1 年之前
父节点
当前提交
6ca8024b11
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      playground/index.html

+ 1 - 3
playground/index.html

@@ -125,7 +125,7 @@
 
 				//
 
-				renderer.setAnimationLoop( render );
+				renderer.setAnimationLoop( animate );
 				renderer.toneMapping = THREE.LinearToneMapping;
 				renderer.toneMappingExposure = 1;
 				document.body.appendChild( renderer.domElement );
@@ -179,8 +179,6 @@
 
 			function animate() {
 
-				requestAnimationFrame( animate );
-
 				if ( renderer.isWebGLRenderer ) nodeFrame.update();
 
 				render();