安全上下文
此特征只可用于 安全上下文 (HTTPS),在某些或所有 支持浏览器 .

草案
此页面不完整。

XRView interface's read-only projectionMatrix property specifies the projection matrix to apply to the underlying view. This should be used to integrate perspective to everything in the scene, in order to ensure the result is consistent with what the eye expects to see.

重要: Failure to apply proper perspective, or inconsistencies in perspective, may result in possibly serious user discomfort or distress.

句法

let projectionMatrix = xrView.projectionMatrix;
					

A Float32Array object representing the projection matrix for the view. The projection matrix for each eye's view is used to ensure that the correct area of the scene is presented to each eye in order to create a believable 3D scene without introducing discomfort for the user.

范例

规范

规范 状态 注释
WebXR 设备 API
The definition of 'XRView.projectionMatrix' in that specification.
工作草案 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
projectionMatrix Chrome 79 Edge 79 Firefox 不支持 No IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android 79 Firefox Android 不支持 No Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android 11.2

图例

完整支持

完整支持

不支持

不支持

元数据

  • 最后修改: