SceneKit shader not working
问题 I'm trying to work with shaders in SceneKit on iOS 8. Here is my code: let sphere = SCNSphere(radius: 6) sphere.segmentCount = 100 sphere.firstMaterial?.diffuse.contents = UIImage(named: "noise.png") sphere.firstMaterial?.diffuse.wrapS = SCNWrapMode.Repeat sphere.firstMaterial?.diffuse.wrapT = SCNWrapMode.Repeat sphere.firstMaterial?.reflective.contents = UIImage(named: "envmap3") sphere.firstMaterial?.fresnelExponent = 1.3 let sphereNode = SCNNode(geometry: sphere) sphereNode.position =