在Unity中,我们可以使用环境深度(Environment Depth)实现遮挡。它在背后使用了ARKit。那么我该如何在iOS ARKit中达到相同的效果呢?
我知道我们可以通过深度配置帧语义,但我怀疑这是否真的与Unity环境深度遮挡相同?
我知道我们可以通过深度配置帧语义,但我怀疑这是否真的与Unity环境深度遮挡相同?
// Build the set of required frame semantics.
let semantics: ARConfiguration.FrameSemantics = [.sceneDepth]
configuration.frameSemantics = semantics
session.run(configuration)