浏览代码

Removing work around code for an iOS beta 1 and 2 issue that has been fixed in beta 3.

/4.1
Todd Stinson 4 年前
当前提交
55434346
共有 1 个文件被更改,包括 0 次插入17 次删除
  1. 17
      Assets/Scripts/DisplayDepthImage.cs

17
Assets/Scripts/DisplayDepthImage.cs


// Update the display mode from the dropdown value.
m_DisplayMode = (DisplayMode)dropdown.value;
// XXX stinson 2020/07/20 : This is a workaround for an iOS 14 beta issue that causes environment depth and
// human depth/stencil to not work together. This should be removed when iOS 14 exits beta.
Debug.Assert(m_OcclusionManager != null, "no occlusion manager");
switch (m_DisplayMode)
{
case DisplayMode.HumanStencil:
m_OcclusionManager.requestedOcclusionPreferenceMode = OcclusionPreferenceMode.PreferHumanOcclusion;
break;
case DisplayMode.HumanDepth:
m_OcclusionManager.requestedOcclusionPreferenceMode = OcclusionPreferenceMode.PreferHumanOcclusion;
break;
case DisplayMode.EnvironmentDepth:
default:
m_OcclusionManager.requestedOcclusionPreferenceMode = OcclusionPreferenceMode.PreferEnvironmentOcclusion;
break;
}
// Update the raw image following the mode change.
UpdateRawImage();
}
正在加载...
取消
保存