Beta 版本特性 依赖基础库版本 v3.1.0
需要在
Plane模式,且支持v2的设备上,planeMode 需设定为1(只允许水平面识别)。
通过以下几个属性确定 ARsystem 深度遮挡的具体表现
depthMask在满足使用要求的情况下,是否开启实时深度遮挡。depthNear开启实时深度遮挡时,遮挡的近处阈值。depthFar开启实时深度遮挡时,遮挡的远处阈值。depthDebug开启实时深度遮挡时,显示一个用于Debug的图层。
案例代码片段 链接
<!-- plane + depth 模式下 planeMode 需设置为 1 (只允许水平面识别) -->
<!-- 水平平面识别情况下,开启深度,近处阈值为0.1,远处阈值为1的深度遮挡,并显示调试用图层 -->
<xr-scene ar-system="modes:Plane; planeMode: 1; depthMask: true; depthNear: 0.1; depthFar: 100; depthDebug: true;">
</xr-scene>