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);

    
    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
Start animation loop