Render an SCNGeometry as a wireframe

后端 未结 3 2131
滥情空心
滥情空心 2021-02-07 21:54

I\'m using SceneKit on iOS and I have a geometry I want to render as a wireframe. So basically I want to draw only the lines, so no textures.

I figured out that I could

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 22:09

    Now it is possible (at least in Cocoa) with:

    gameView.debugOptions.insert(SCNDebugOptions.showWireframe)
    

    or you can do it interactively if enabling the statistics with:

    gameView.showsStatistics = true
    

    (gameView is an instance of SCNView)

提交回复
热议问题