- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
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/
SCNLightingModelPhysicallyBased 是 iOS 10 引入的新光照模型。使用它时,您不必在 SceneKit 场景中放置灯光,而是可以使用环境光照。你可以试试这个 open
我是一名优秀的程序员,十分优秀!