Render an SCNGeometry as a wireframe

后端 未结 3 2146
滥情空心
滥情空心 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
    2021-02-07 22:04

    Try setting the material fillMode to .lines (iOS 11+, and macOS 10.13+):

    sphereNode.geometry?.firstMaterial?.fillMode = .lines

提交回复
热议问题