Thick Red Line - drawing thick lines for SceneKit with metal shaders
Thick Red Line - drawing thick lines with constant on-screen width independent of perspective, for SceneKit with metal shaders
Example:
let geometry = SCNGeometry.lineThrough(points: [SCNVector3(0, 0,0), SCNVector3(0, 10, 0), SCNVector3(10, 10, 0)],
width: 20,
closed: false,
color: UIColor.red.cgColor)
let node = SCNNode(geometry: geometry)
scene.rootNode.addChildNode(node)
Parameters: