我为我的AR应用程序提供截图功能,我注意到我通过sceneView.snapshot()
拍摄的截图比我从相机中看到的要暗得多。我正在使用苹果公司的ARKit示例代码,似乎这会影响它:
camera.wantsHDR = true
camera.wantsExposureAdaptation = true
camera.exposureOffset = -1
camera.minimumExposure = -1
camera.maximumExposure = 3
当我删除曝光设置时,快照可以正常工作。有什么方法可以确保快照考虑这些曝光设置吗?
sceneView.automaticallyUpdatesLighting = true
,尝试一下,看它是否有帮助。 - E. Huckabee