function setup() { scene.setup(); remote.connect(onMessage); // launchIdleAnimation(); }
function update() { if (isActive) { updateId = window.requestAnimationFrame(update); } scene.render(); }