antvis / G

💥 A flexible rendering engine for visualization.

Home Page:https://g.antv.antgroup.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[g-webgl] 支持 WebXR

xiaoiver opened this issue · comments

WebXR 和 WebGL 使用的坐标系、单位是一致的:原点在屏幕中心,Y 轴正向向上,单位是米
https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API/Geometry#units

而我们的坐标系中原点在左上角,Y 轴正向向下,单位为 CSS Pixel。
因此从 XRView 中获取的 viewMatrix 需要处理