function animate() {
    // render
    controls.update();

    if (ready) {
      renderer.render(sceneRTT, camera, rtTexture, true);
      renderer.render(sceneScreen, camera);
    }

    stats.update();

    // request new frame
    requestAnimationFrame(function() {
      animate();
    });
  }
function animate() {
    
    controls.update();

    if (ready) {
      renderer.render(sceneRTT, camera, rtTexture, true);
      renderer.render(sceneScreen, camera);
    }

    stats.update();

    
    requestAnimationFrame(function() {
      animate();
    });
  }
function animate ( ) { // render controls . update ( ) ; if ( ready ) { renderer . render ( sceneRTT , camera , rtTexture , true ) ; renderer . render ( sceneScreen , camera ) ; } stats . update ( ) ; // request new frame requestAnimationFrame ( function ( ) { animate ( ) ; } ) ; }
this function is executed on each animation frame
this function is executed on each animation frame