keletonMesh.update(delta);

        // render the scene
        renderer.render(scene, camera);

        requestAnimationFrame(render);
      }

      function resize() {
        let w = window.innerWidth;
        let h = window.innerHeight;
        if (canvas.width != w || canvas.height != h) {
          canvas.width = w;
          canvas.height = h;
        }

        camera.aspect = w / h;
        camera.updateProjectionMatrix();

        renderer.setSize(w, h);
      }

      init();

    </script>
  </