CIFilter on SCNNode only works in Simulator

后端 未结 1 689
醉话见心
醉话见心 2021-01-23 03:11

Having a bit of a head-scratcher with the new filter features in SceneKit with iOS9. To simplify the case as much as possible, if I add the line:

ship.filter         


        
1条回答
  •  一整个雨季
    2021-01-23 04:08

    CIFilter are not supported by SceneKit when using Metal (which is the default on the device). See documentation of SCNNode / filters.

    If you need CIFilter you have to explicitly request a GL based renderer (using InterfaceBuilder or SCNView's "renderingAPI" property).

    0 讨论(0)
提交回复
热议问题