let vrDisplay;
navigator.getVRDisplays().then((displays) => {
vrDisplay = displays[0];
vrDisplay.depthNear = 1.0;
vrDisplay.depthFar = 7500.0;
});VRDisplay: depthNear property / notebook
VRDisplay: depthNear property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.