gpt4 book ai didi

swift - watchOS 3 支持 SCNLightingModelPhysicallyBased

转载 作者:搜寻专家 更新时间:2023-11-01 07:21:12 25 4
gpt4 key购买 nike

SCNLightingModelPhysicallyBased 是 iOS 10 引入的新光照模型。使用它时,您不必在 SceneKit 场景中放置灯光,而是可以使用环境光照。你可以试试这个 open source project .

它在我运行 iOS 10 的 iPhone 6 上运行良好。但是,它在我的 watchOS 3 Apple Watch 上不起作用。我相信这是因为 watch 运行的是 OpenGL 渲染 API 而不是 Metal 渲染 API。

似乎没有办法强制 watch 在 WKInterfaceSCNScene 上使用 Metal 渲染 API。

documentation for SCNLightingModelPhysicallyBased说 watchOS 3 支持它。

如何让 watch 运行 Metal 渲染?

最佳答案

来自 Existing Frameworks Now Available in watchOS 下的 watchOS 发行说明:

SceneKit in watchOS supports most of the features you use on other platforms, including lighting and shading, animation, physics, and particle systems, with the following exceptions:

  • 3D spatial audio implemented using SCNAudioSource or SCNAudioPlayer.Instead, use playAudioSource:waitForCompletion: or the WatchKit soundor haptic APIs.
  • Custom Metal or OpenGL shader programs implementedusing SCNProgram or SCNTechnique. Instead, customize SceneKitrendering with shader modifiers (to learn more, see SCNShadable).
  • Core Image filters for node rendering implemented using the SCNNodefilters property. Instead, customize rendering with shader modifiers(see SCNShadable).
  • The physically-based material and lighting and HDRcamera effects introduced in iOS 10, tvOS 10, and OS X v10.12.

关于swift - watchOS 3 支持 SCNLightingModelPhysicallyBased,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38889264/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com