Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if ( canvas.mozRequestFullScreen ) {
canvas.mozRequestFullScreen( { vrDisplay: vrHMD } );
} else if ( canvas.webkitRequestFullscreen ) {
canvas.webkitRequestFullscreen( { vrDisplay: vrHMD } );
}
};
// render
var cameraL = new THREE.PerspectiveCamera();
var cameraR = new THREE.PerspectiveCamera();
this.render = function ( scene, camera ) {
if ( vrHMD ) {
var sceneL, sceneR;
if ( Array.isArray( scene ) ) {
sceneL = scene[ 0 ];
sceneR = scene[ 1 ];
} else {
sceneL = scene;
sceneR = scene;
if ( canvas.mozRequestFullScreen ) {
canvas.mozRequestFullScreen( { vrDisplay: vrHMD } );
} else if ( canvas.webkitRequestFullscreen ) {
canvas.webkitRequestFullscreen( { vrDisplay: vrHMD } );
}
};
// render
var cameraL = new THREE.PerspectiveCamera();
var cameraR = new THREE.PerspectiveCamera();
this.render = function ( scene, camera ) {
if ( vrHMD ) {
var sceneL, sceneR;
if ( Array.isArray( scene ) ) {
sceneL = scene[ 0 ];
sceneR = scene[ 1 ];
} else {
sceneL = scene;