lessons/05/demo.js
function animate() {
    controls.update();
    renderer.render(scene, camera);

    controls1.update();
    renderer1.render(scene1, camera1);

    // request new frame
    requestAnimationFrame(function() {
        animate();
    });
}
function animate() {
    controls.update();
    renderer.render(scene, camera);

    controls1.update();
    renderer1.render(scene1, camera1);

    // request new frame
    requestAnimationFrame(function() {
        animate();
    });
}
Start animation loop