          if (count)
            scale += scale_down ? -0.004 : 0.004;

          if (scale >= 1) {
            scale = 1;
            scale_down = true;
          } else if (scale <= 0.125) {
            scale = 0.125;
            scale_down = false;
          }
        }

        scene.endFrame();
      }

      initXR();
    </script>
  </body>
</html>
