src/components/scene/screenshot.js
function (projection) {
    var isVREnabled = this.el.renderer.vr.enabled;
    var renderer = this.el.renderer;
    var params;
    // Disable VR.
    renderer.vr.enabled = false;
    params = this.setCapture(projection);
    this.renderCapture(params.camera, params.size, params.projection);
    // Trigger file download.
    this.saveCapture();
    // Restore VR.
    renderer.vr.enabled = isVREnabled;
  }
function (projection) {
    var isVREnabled = this.el.renderer.vr.enabled;
    var renderer = this.el.renderer;
    var params;
    // Disable VR.
    renderer.vr.enabled = false;
    params = this.setCapture(projection);
    this.renderCapture(params.camera, params.size, params.projection);
    // Trigger file download.
    this.saveCapture();
    // Restore VR.
    renderer.vr.enabled = isVREnabled;
  }
function ( projection ) { var isVREnabled = this . el . renderer . vr . enabled ; var renderer = this . el . renderer ; var params ; // Disable VR. renderer . vr . enabled = false ; params = this . setCapture ( projection ) ; this . renderCapture ( params . camera , params . size , params . projection ) ; // Trigger file download. this . saveCapture ( ) ; // Restore VR. renderer . vr . enabled = isVREnabled ; }
Maintained for backwards compatibility.
Maintained for backwards compatibility .