const cubeLayer = xrGlBinding.createCubeLayer({
space: xrReferenceSpace,
viewPixelWidth: 512,
viewPixelHeight: 512,
orientation: DOMPointReadOnly.fromPoint({ x: 0.0, y: 0.0, z: 0.0, w: 1.0 }),
});
cubeLayer.orientation = someOtherPoint;XRCubeLayer: orientation property / notebook
XRCubeLayer: orientation property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.