.requestPresent([
          {
            source: renderer.domElement,
          }
        ]);
        console.log('entered vr');

        display.layers = layers;

        const {renderWidth: width, renderHeight: height} = display.getEyeParameters('left');
        renderer.setSize(width * 2, height);

        renderer.setAnimationLoop(null);
        renderer.vr.enabled = true;
        renderer.vr.setDevice(display);
        renderer.vr.setAnimationLoop(animate);

        if (window.browser && window.browse