let geometry:SCNGeometry
...................
let material = SCNMaterial()
material.diffuse.contents = UIColor(red: 255.0 / 255.0, green: 0 / 255.0, blue: 0 / 255.0, alpha: 0.8) // 设置半透明颜色
let boxNode = SCNNode()
boxNode.geometry = geometry
boxNode.geometry?.materials = [material]
boxNode.position = SCNVector3(0, -2, -2)
沒有留言:
張貼留言