ios - SceneKit 在 Sun 上有黑色环,使用 HDRI (exr) 作为场景背景和照明环境
问题描述
这很奇怪,因为这个错误并没有出现在我的带有 A9 芯片和 iOS 14.8 的旧设备上。但在 A12 设备和 iOS 模拟器上,它始终适用于 iOS 14 和 15。
node.camera?.wantsHDR = true
node.camera?.wantsDepthOfField = true
node.camera?.wantsExposureAdaptation = true
node.camera?.automaticallyAdjustsZRange = true
if let env = assetMap[.HDRI]?.first {
let path = env.path
scene.background.contents = path
scene.lightingEnvironment.contents = path
}
您可以在这里找到一些测试图像: https ://ambientcg.com/list?category=OutdoorHDRI
解决方案
推荐阅读
- elasticsearch - 连接到现有弹性搜索的 Graylog 显示 503
- r - 如何用 bnlearn 表示领域知识信息
- javascript - 如何根据 React Native 表单中的字段值更新其他字段?
- google-sheets - 谷歌表时差计算
- django - 如何为聊天应用消息进行分页
- c# - 在 Visual Studio 中生成服务
- go - 浏览器在执行 http.Get in rest API 时使用 golang 返回空响应
- dc.js - 绘制 javascript 交叉过滤器维度的各个方面(使用 d3 和交叉过滤器的数量与时间)
- c - c 表达式在二维数组中必须有一个常量值
- python - TypeError:在 Datetime 上使用 Pandas 进行的类型提升无效