@IBOutlet var sceneView: ARSCNView!
override func viewWillAppear(_ animated: Bool) {
let imageView = UIImageView(frame: sceneView.bounds)
imageView.contentMode = .scaleAspectFill
imageView.image = UIImage(named: "myImage")
sceneView.scene.background.contents = imageView
}
这会导致图像看起来像这样:
原图:
我不想要那种红色。我该如何防止这种情况发生?