function setCustomFOV(up, right, down, left) {
const testFOV = new VRFieldOfView(up, right, down, left);
gHMD.setFieldOfView(testFOV, testFOV, 0.01, 10000.0);
const lEye = gHMD.getEyeParameters("left");
const rEye = gHMD.getEyeParameters("right");
console.log(lEye.currentFieldOfView);
console.log(rEye.currentFieldOfView);
}HMDVRDevice: setFieldOfView() method / notebook
HMDVRDevice: setFieldOfView() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.