function render() { renderer.render(scene, camera); //执行渲染操作 // mesh.rotateY(0.01);//每次绕y轴旋转0.01弧度 requestAnimationFrame(render); //请求再次执行渲染函数render } render(); var controls = new OrbitControls(camera, renderer.domElement); //创建控件对象 //controls.addEventListener('change', render); //周期性执行render函数,没必要再通过监听鼠标事件执行render函数
标签:场景,鼠标,render,0.01,三维,controls,camera,renderer From: https://www.cnblogs.com/Simoon/p/16613764.html