How to I turn off the ambient light in Scene Kit (with Swift)?
问题 When I create a new Scene Kit Game using the Swift language, there is already some come which gives this result : I want to turn off the ambient light which is lighting the cube but I don't get how to do that since there isn't any light explicitly attached to any node. Her's the Game View Controller code : import SceneKit import QuartzCore class GameViewController: NSViewController { @IBOutlet var gameView: GameView override func awakeFromNib(){ // create a new scene let scene = SCNScene() //